<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl5140delta - what is new for perl v5.14.0 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl5140delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5140delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl5140delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl5140delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl5140delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl5140delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl5140delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl5140delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl5140delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl5140delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl5140delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl5140delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl5140delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl5140delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl5140delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl5140delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl5140delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl5140delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl5140delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl5140delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl5140delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl5140delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl5140delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl5140delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl5140delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl5140delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl5140delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl5140delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl5140delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl5140delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl5140delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl5140delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl5140delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl5140delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl5140delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl5140delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl5140delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl5140delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl5140delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl5140delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl5140delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl5140delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl5140delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl5140delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl5140delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl5140delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl5140delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl5140delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl5140delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl5140delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl5140delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl5140delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl5140delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl5140delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl5140delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl5140delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl5140delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl5140delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl5140delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl5140delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl5140delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl5140delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl5140delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl5140delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl5140delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl5140delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl5140delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl5140delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl5140delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl5140delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl5140delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl5140delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl5140delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl5140delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl5140delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl5140delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl5140delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl5140delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl5140delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl5140delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl5140delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl5140delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5140delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl5140delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl5140delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl5140delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl5140delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl5140delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl5140delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl5140delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl5140delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl5140delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl5140delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl5140delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl5140delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl5140delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl5140delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl5140delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl5140delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl5140delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl5140delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl5140delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl5140delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl5140delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl5140delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl5140delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl5140delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl5140delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl5140delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl5140delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl5140delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl5140delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl5140delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl5140delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl5140delta">5.35.1</a>
          <a class="dropdown-item active" href="perl5140delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5140delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl5140delta.html">perl5140delta</a>
          <div id="more">
            (<a href="perl5140delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl5140delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Notice">Notice</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Core-Enhancements">Core Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Unicode">Unicode</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Unicode-Version-6.0-is-now-supported-(mostly)">Unicode Version 6.0 is now supported (mostly)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Full-functionality-for-use-feature-&#39;unicode_strings&#39;">Full functionality for use feature &#39;unicode_strings&#39;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%5CN%7BNAME%7D-and-charnames-enhancements">\N{NAME} and charnames enhancements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-warnings-categories-for-problematic-(non-)Unicode-code-points.">New warnings categories for problematic (non-)Unicode code points.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Any-unsigned-value-can-be-encoded-as-a-character">Any unsigned value can be encoded as a character</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Unicode-database-files-not-installed">Unicode database files not installed</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Regular-Expressions">Regular Expressions</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#(?%5E...)-construct-signifies-default-modifiers">(?^...) construct signifies default modifiers</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#/d,-/l,-/u,-and-/a-modifiers">/d, /l, /u, and /a modifiers</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Non-destructive-substitution">Non-destructive substitution</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Re-entrant-regular-expression-engine">Re-entrant regular expression engine</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#use-re-&#39;/flags&#39;">use re &#39;/flags&#39;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%5Co%7B...%7D-for-octals">\o{...} for octals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Add-%5Cp%7BTitlecase%7D-as-a-synonym-for-%5Cp%7BTitle%7D">Add \p{Titlecase} as a synonym for \p{Title}</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Regular-expression-debugging-output-improvement">Regular expression debugging output improvement</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Return-value-of-delete-$+%7B...%7D">Return value of delete $+{...}</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Syntactical-Enhancements">Syntactical Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Array-and-hash-container-functions-accept-references">Array and hash container functions accept references</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Single-term-prototype">Single term prototype</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#package-block-syntax">package block syntax</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Statement-labels-can-appear-in-more-places">Statement labels can appear in more places</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Stacked-labels">Stacked labels</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Uppercase-X/B-allowed-in-hexadecimal/binary-literals">Uppercase X/B allowed in hexadecimal/binary literals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Overridable-tie-functions">Overridable tie functions</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Exception-Handling">Exception Handling</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Other-Enhancements">Other Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Assignment-to-$0-sets-the-legacy-process-name-with-prctl()-on-Linux">Assignment to $0 sets the legacy process name with prctl() on Linux</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#srand()-now-returns-the-seed">srand() now returns the seed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#printf-like-functions-understand-post-1980-size-modifiers">printf-like functions understand post-1980 size modifiers</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-global-variable-$%7B%5EGLOBAL_PHASE%7D">New global variable ${^GLOBAL_PHASE}</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#-d:-foo-calls-Devel::foo::unimport">-d:-foo calls Devel::foo::unimport</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Filehandle-method-calls-load-IO::File-on-demand">Filehandle method calls load IO::File on demand</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Improved-IPv6-support">Improved IPv6 support</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#DTrace-probes-now-include-package-name">DTrace probes now include package name</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-C-APIs">New C APIs</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Security">Security</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#User-defined-regular-expression-properties">User-defined regular expression properties</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Incompatible-Changes">Incompatible Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Regular-Expressions-and-String-Escapes">Regular Expressions and String Escapes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Inverted-bracketed-character-classes-and-multi-character-folds">Inverted bracketed character classes and multi-character folds</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%5C400-%5C777">\400-\777</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Most-%5Cp%7B%7D-properties-are-now-immune-to-case-insensitive-matching">Most \p{} properties are now immune to case-insensitive matching</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%5Cp%7B%7D-implies-Unicode-semantics">\p{} implies Unicode semantics</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Regular-expressions-retain-their-localeness-when-interpolated">Regular expressions retain their localeness when interpolated</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Stringification-of-regexes-has-changed">Stringification of regexes has changed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Run-time-code-blocks-in-regular-expressions-inherit-pragmata">Run-time code blocks in regular expressions inherit pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Stashes-and-Package-Variables">Stashes and Package Variables</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Localised-tied-hashes-and-arrays-are-no-longed-tied">Localised tied hashes and arrays are no longed tied</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Stashes-are-now-always-defined">Stashes are now always defined</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Clearing-stashes">Clearing stashes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Dereferencing-typeglobs">Dereferencing typeglobs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Magic-variables-outside-the-main-package">Magic variables outside the main package</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#local($_)-strips-all-magic-from-$_">local($_) strips all magic from $_</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Parsing-of-package-and-variable-names">Parsing of package and variable names</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Changes-to-Syntax-or-to-Perl-Operators">Changes to Syntax or to Perl Operators</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#given-return-values">given return values</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Change-in-parsing-of-certain-prototypes">Change in parsing of certain prototypes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Smart-matching-against-array-slices">Smart-matching against array slices</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Negation-treats-strings-differently-from-before">Negation treats strings differently from before</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Negative-zero">Negative zero</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#:=-is-now-a-syntax-error">:= is now a syntax error</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Change-in-the-parsing-of-identifiers">Change in the parsing of identifiers</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Threads-and-Processes">Threads and Processes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Directory-handles-not-copied-to-threads">Directory handles not copied to threads</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#close-on-shared-pipes">close on shared pipes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#fork()-emulation-will-not-wait-for-signalled-children">fork() emulation will not wait for signalled children</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Configuration">Configuration</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Naming-fixes-in-Policy_sh.SH-may-invalidate-Policy.sh">Naming fixes in Policy_sh.SH may invalidate Policy.sh</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Perl-source-code-is-read-in-text-mode-on-Windows">Perl source code is read in text mode on Windows</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Deprecations">Deprecations</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Omitting-a-space-between-a-regular-expression-and-subsequent-word">Omitting a space between a regular expression and subsequent word</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%5CcX">\cX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%22%5Cb%7B%22-and-%22%5CB%7B%22">&quot;\b{&quot; and &quot;\B{&quot;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Perl-4-era-.pl-libraries">Perl 4-era .pl libraries</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#List-assignment-to-$%5B">List assignment to $[</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Use-of-qw(...)-as-parentheses">Use of qw(...) as parentheses</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%5CN%7BBELL%7D">\N{BELL}</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#?PATTERN?">?PATTERN?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Tie-functions-on-scalars-holding-typeglobs">Tie functions on scalars holding typeglobs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#User-defined-case-mapping">User-defined case-mapping</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Deprecated-modules">Deprecated modules</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Performance-Enhancements">Performance Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%22Safe-signals%22-optimisation">&quot;Safe signals&quot; optimisation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Optimisation-of-shift()-and-pop()-calls-without-arguments">Optimisation of shift() and pop() calls without arguments</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Optimisation-of-regexp-engine-string-comparison-work">Optimisation of regexp engine string comparison work</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Regular-expression-compilation-speed-up">Regular expression compilation speed-up</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#String-appending-is-100-times-faster">String appending is 100 times faster</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Eliminate-PL_*-accessor-functions-under-ithreads">Eliminate PL_* accessor functions under ithreads</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Freeing-weak-references">Freeing weak references</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Lexical-array-and-hash-assignments">Lexical array and hash assignments</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#@_-uses-less-memory">@_ uses less memory</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Size-optimisations-to-SV-and-HV-structures">Size optimisations to SV and HV structures</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Memory-consumption-improvements-to-Exporter">Memory consumption improvements to Exporter</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Memory-savings-for-weak-references">Memory savings for weak references</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#%25+-and-%25-use-less-memory">%+ and %- use less memory</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Multiple-small-improvements-to-threads">Multiple small improvements to threads</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Adjacent-pairs-of-nextstate-opcodes-are-now-optimized-away">Adjacent pairs of nextstate opcodes are now optimized away</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-Modules-and-Pragmata">New Modules and Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Updated-Modules-and-Pragma">Updated Modules and Pragma</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Removed-Modules-and-Pragmata">Removed Modules and Pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Documentation">Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-Documentation">New Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perlgpl">perlgpl</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Perl-5.12.x-delta-files">Perl 5.12.x delta files</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perlpodstyle">perlpodstyle</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perlsource,-perlinterp,-perlhacktut,-and-perlhacktips">perlsource, perlinterp, perlhacktut, and perlhacktips</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perlmodlib-is-now-complete">perlmodlib is now complete</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Replace-incorrect-tr///-table-in-perlebcdic">Replace incorrect tr/// table in perlebcdic</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Tricks-for-user-defined-casing">Tricks for user-defined casing</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#INSTALL-explicitly-states-that-Perl-requires-a-C89-compiler">INSTALL explicitly states that Perl requires a C89 compiler</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Explanation-of-%5CxHH-and-%5CoOOO-escapes">Explanation of \xHH and \oOOO escapes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#-0NNN-switch">-0NNN switch</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Maintenance-policy">Maintenance policy</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Deprecation-policy">Deprecation policy</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-descriptions-in-perldiag">New descriptions in perldiag</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perlbook">perlbook</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#SvTRUE-macro">SvTRUE macro</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#op-manipulation-functions">op manipulation functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perlvar-revamp">perlvar revamp</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Array-and-hash-slices-in-scalar-context">Array and hash slices in scalar context</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#use-locale-and-formats">use locale and formats</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#overload">overload</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perlhack-and-perlrepository-revamp">perlhack and perlrepository revamp</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Time::Piece-examples">Time::Piece examples</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Diagnostics">Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-Diagnostics">New Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-Errors">New Errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-Warnings">New Warnings</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Utility-Changes">Utility Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perlbug(1)">perlbug(1)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#perl5db.pl">perl5db.pl</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#ptargrep">ptargrep</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Configuration-and-Compilation">Configuration and Compilation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Platform-Support">Platform Support</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-Platforms">New Platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Discontinued-Platforms">Discontinued Platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Platform-Specific-Notes">Platform-Specific Notes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#AIX1">AIX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#ARM">ARM</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Cygwin">Cygwin</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#FreeBSD-7">FreeBSD 7</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#HP-UX">HP-UX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#IRIX">IRIX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Mac-OS-X">Mac OS X</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#MirBSD">MirBSD</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#NetBSD">NetBSD</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#OpenBSD">OpenBSD</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#OpenVOS">OpenVOS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Solaris">Solaris</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#VMS">VMS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Windows">Windows</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Internal-Changes">Internal Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-APIs">New APIs</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#CLONE_PARAMS-structure-added-to-ease-correct-thread-creation">CLONE_PARAMS structure added to ease correct thread creation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-parsing-functions">New parsing functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Hints-hash-API">Hints hash API</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#C-interface-to-caller()">C interface to caller()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Custom-per-subroutine-check-hooks">Custom per-subroutine check hooks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Improved-support-for-custom-OPs">Improved support for custom OPs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Scope-hooks">Scope hooks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#The-recursive-part-of-the-peephole-optimizer-is-now-hookable">The recursive part of the peephole optimizer is now hookable</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-non-magical-variants-of-existing-functions">New non-magical variants of existing functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#pv/pvs/sv-versions-of-existing-functions">pv/pvs/sv versions of existing functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#List-op-building-functions">List op-building functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#LINKLIST">LINKLIST</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Localisation-functions">Localisation functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Stash-names">Stash names</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-functions-for-finding-and-removing-magic">New functions for finding and removing magic</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#find_rundefsv">find_rundefsv</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Perl_croak_no_modify">Perl_croak_no_modify</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#PERL_STATIC_INLINE-define">PERL_STATIC_INLINE define</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#New-pv_escape-option-for-hexadecimal-escapes">New pv_escape option for hexadecimal escapes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#lex_start">lex_start</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#op_scope()-and-op_lvalue()">op_scope() and op_lvalue()</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#C-API-Changes">C API Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#PERL_POLLUTE-has-been-removed">PERL_POLLUTE has been removed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Check-API-compatibility-when-loading-XS-modules">Check API compatibility when loading XS modules</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Perl_fetch_cop_label">Perl_fetch_cop_label</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#GvCV()-and-GvGP()-are-no-longer-lvalues">GvCV() and GvGP() are no longer lvalues</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#CvGV()-is-no-longer-an-lvalue">CvGV() is no longer an lvalue</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#CvSTASH()-is-no-longer-an-lvalue">CvSTASH() is no longer an lvalue</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Calling-conventions-for-newFOROP-and-newWHILEOP">Calling conventions for newFOROP and newWHILEOP</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Flags-passed-to-uvuni_to_utf8_flags-and-utf8n_to_uvuni">Flags passed to uvuni_to_utf8_flags and utf8n_to_uvuni</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Deprecated-C-APIs">Deprecated C APIs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Other-Internal-Changes">Other Internal Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Stack-unwinding">Stack unwinding</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Scope-stack-entries">Scope stack entries</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Memory-allocation-for-pointer-tables">Memory allocation for pointer tables</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#UNDERBAR">UNDERBAR</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#String-comparison-routines-renamed">String comparison routines renamed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#chop-and-chomp-implementations-merged">chop and chomp implementations merged</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Selected-Bug-Fixes">Selected Bug Fixes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#I/O">I/O</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Regular-Expression-Bug-Fixes">Regular Expression Bug Fixes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Syntax/Parsing-Bugs">Syntax/Parsing Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Stashes,-Globs-and-Method-Lookup">Stashes, Globs and Method Lookup</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Unicode1">Unicode</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Ties,-Overloading-and-Other-Magic">Ties, Overloading and Other Magic</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#The-Debugger">The Debugger</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Threads">Threads</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Scoping-and-Subroutines">Scoping and Subroutines</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Signals">Signals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Miscellaneous-Memory-Leaks">Miscellaneous Memory Leaks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Memory-Corruption-and-Crashes">Memory Corruption and Crashes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Fixes-to-Various-Perl-Operators">Fixes to Various Perl Operators</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Bugs-Relating-to-the-C-API">Bugs Relating to the C API</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Known-Problems">Known Problems</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Errata">Errata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#keys(),-values(),-and-each()-work-on-arrays">keys(), values(), and each() work on arrays</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#split()-and-@_">split() and @_</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Obituary">Obituary</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Acknowledgements">Acknowledgements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#Reporting-Bugs">Reporting Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5140delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl5140delta.html#NAME">#</a>NAME</h1>

<p>perl5140delta - what is new for perl v5.14.0</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl5140delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the 5.12.0 release and the 5.14.0 release.</p>

<p>If you are upgrading from an earlier release such as 5.10.0, first read <a href="perl5120delta.html">perl5120delta</a>, which describes differences between 5.10.0 and 5.12.0.</p>

<p>Some of the bug fixes in this release have been backported to subsequent releases of 5.12.x. Those are indicated with the 5.12.x version in parentheses.</p>

<h1 id="Notice"><a class="permalink" href="perl5140delta.html#Notice">#</a>Notice</h1>

<p>As described in <a href="perlpolicy.html">perlpolicy</a>, the release of Perl 5.14.0 marks the official end of support for Perl 5.10. Users of Perl 5.10 or earlier should consider upgrading to a more recent release of Perl.</p>

<h1 id="Core-Enhancements"><a class="permalink" href="perl5140delta.html#Core-Enhancements">#</a><a id="Core"></a>Core Enhancements</h1>

<h2 id="Unicode"><a class="permalink" href="perl5140delta.html#Unicode">#</a>Unicode</h2>

<h3 id="Unicode-Version-6.0-is-now-supported-(mostly)"><a class="permalink" href="perl5140delta.html#Unicode-Version-6.0-is-now-supported-(mostly)">#</a><a id="Unicode2"></a><a id="Unicode-Version-6.0-is-now-supported-mostly"></a>Unicode Version 6.0 is now supported (mostly)</h3>

<p>Perl comes with the Unicode 6.0 data base updated with <a href="http://www.unicode.org/versions/corrigendum8.html">Corrigendum #8</a>, with one exception noted below. See <a href="http://unicode.org/versions/Unicode6.0.0/">http://unicode.org/versions/Unicode6.0.0/</a> for details on the new release. Perl does not support any Unicode provisional properties, including the new ones for this release.</p>

<p>Unicode 6.0 has chosen to use the name <code>BELL</code> for the character at U+1F514, which is a symbol that looks like a bell, and is used in Japanese cell phones. This conflicts with the long-standing Perl usage of having <code>BELL</code> mean the ASCII <code>BEL</code> character, U+0007. In Perl 5.14, <code>\N{BELL}</code> continues to mean U+0007, but its use generates a deprecation warning message unless such warnings are turned off. The new name for U+0007 in Perl is <code>ALERT</code>, which corresponds nicely with the existing shorthand sequence for it, <code>&quot;\a&quot;</code>. <code>\N{BEL}</code> means U+0007, with no warning given. The character at U+1F514 has no name in 5.14, but can be referred to by <code>\N{U+1F514}</code>. In Perl 5.16, <code>\N{BELL}</code> will refer to U+1F514; all code that uses <code>\N{BELL}</code> should be converted to use <code>\N{ALERT}</code>, <code>\N{BEL}</code>, or <code>&quot;\a&quot;</code> before upgrading.</p>

<h3 id="Full-functionality-for-use-feature-&#39;unicode_strings&#39;"><a class="permalink" href="perl5140delta.html#Full-functionality-for-use-feature-&#39;unicode_strings&#39;">#</a><a id="Full"></a><a id="Full-functionality-for-use-feature-unicode_strings"></a>Full functionality for <code>use feature &#39;unicode_strings&#39;</code></h3>

<p>This release provides full functionality for <code>use feature &#39;unicode_strings&#39;</code>. Under its scope, all string operations executed and regular expressions compiled (even if executed outside its scope) have Unicode semantics. See <a href="feature.html#the-%27unicode_strings%27-feature">&quot;the &#39;unicode_strings&#39; feature&quot; in feature</a>. However, see <a href="perl5140delta.html#Inverted-bracketed-character-classes-and-multi-character-folds">&quot;Inverted bracketed character classes and multi-character folds&quot;</a>, below.</p>

<p>This feature avoids most forms of the &quot;Unicode Bug&quot; (see <a href="perlunicode.html#The-%22Unicode-Bug%22">&quot;The &quot;Unicode Bug&quot;&quot; in perlunicode</a> for details). If there is any possibility that your code will process Unicode strings, you are <i>strongly</i> encouraged to use this subpragma to avoid nasty surprises.</p>

<h3 id="\N{NAME}-and-charnames-enhancements"><a class="permalink" href="perl5140delta.html#%5CN%7BNAME%7D-and-charnames-enhancements">#</a><a id="N-NAME-and-charnames-enhancements"></a><code>\N{<i>NAME</i>}</code> and <code>charnames</code> enhancements</h3>

<ul>

<li><p><code>\N{<i>NAME</i>}</code> and <code>charnames::vianame</code> now know about the abbreviated character names listed by Unicode, such as NBSP, SHY, LRO, ZWJ, etc.; all customary abbreviations for the C0 and C1 control characters (such as ACK, BEL, CAN, etc.); and a few new variants of some C1 full names that are in common usage.</p>

</li>
<li><p>Unicode has several <i>named character sequences</i>, in which particular sequences of code points are given names. <code>\N{<i>NAME</i>}</code> now recognizes these.</p>

</li>
<li><p><code>\N{<i>NAME</i>}</code>, <code>charnames::vianame</code>, and <code>charnames::viacode</code> now know about every character in Unicode. In earlier releases of Perl, they didn&#39;t know about the Hangul syllables nor several CJK (Chinese/Japanese/Korean) characters.</p>

</li>
<li><p>It is now possible to override Perl&#39;s abbreviations with your own custom aliases.</p>

</li>
<li><p>You can now create a custom alias of the ordinal of a character, known by <code>\N{<i>NAME</i>}</code>, <code>charnames::vianame()</code>, and <code>charnames::viacode()</code>. Previously, aliases had to be to official Unicode character names. This made it impossible to create an alias for unnamed code points, such as those reserved for private use.</p>

</li>
<li><p>The new function charnames::string_vianame() is a run-time version of <code>\N{<i>NAME</i>}}</code>, returning the string of characters whose Unicode name is its parameter. It can handle Unicode named character sequences, whereas the pre-existing charnames::vianame() cannot, as the latter returns a single code point.</p>

</li>
</ul>

<p>See <a href="charnames.html">charnames</a> for details on all these changes.</p>

<h3 id="New-warnings-categories-for-problematic-(non-)Unicode-code-points."><a class="permalink" href="perl5140delta.html#New-warnings-categories-for-problematic-(non-)Unicode-code-points.">#</a><a id="New"></a><a id="New-warnings-categories-for-problematic-non--Unicode-code-points"></a>New warnings categories for problematic (non-)Unicode code points.</h3>

<p>Three new warnings subcategories of &quot;utf8&quot; have been added. These allow you to turn off some &quot;utf8&quot; warnings, while allowing other warnings to remain on. The three categories are: <code>surrogate</code> when UTF-16 surrogates are encountered; <code>nonchar</code> when Unicode non-character code points are encountered; and <code>non_unicode</code> when code points above the legal Unicode maximum of 0x10FFFF are encountered.</p>

<h3 id="Any-unsigned-value-can-be-encoded-as-a-character"><a class="permalink" href="perl5140delta.html#Any-unsigned-value-can-be-encoded-as-a-character">#</a><a id="Any"></a>Any unsigned value can be encoded as a character</h3>

<p>With this release, Perl is adopting a model that any unsigned value can be treated as a code point and encoded internally (as utf8) without warnings, not just the code points that are legal in Unicode. However, unless utf8 or the corresponding sub-category (see previous item) of lexical warnings have been explicitly turned off, outputting or executing a Unicode-defined operation such as upper-casing on such a code point generates a warning. Attempting to input these using strict rules (such as with the <code>:encoding(UTF-8)</code> layer) will continue to fail. Prior to this release, handling was inconsistent and in places, incorrect.</p>

<p>Unicode non-characters, some of which previously were erroneously considered illegal in places by Perl, contrary to the Unicode Standard, are now always legal internally. Inputting or outputting them works the same as with the non-legal Unicode code points, because the Unicode Standard says they are (only) illegal for &quot;open interchange&quot;.</p>

<h3 id="Unicode-database-files-not-installed"><a class="permalink" href="perl5140delta.html#Unicode-database-files-not-installed">#</a><a id="Unicode3"></a>Unicode database files not installed</h3>

<p>The Unicode database files are no longer installed with Perl. This doesn&#39;t affect any functionality in Perl and saves significant disk space. If you need these files, you can download them from <a href="http://www.unicode.org/Public/zipped/6.0.0/">http://www.unicode.org/Public/zipped/6.0.0/</a>.</p>

<h2 id="Regular-Expressions"><a class="permalink" href="perl5140delta.html#Regular-Expressions">#</a><a id="Regular"></a>Regular Expressions</h2>

<h3 id="(?^...)-construct-signifies-default-modifiers"><a class="permalink" href="perl5140delta.html#(?%5E...)-construct-signifies-default-modifiers">#</a><a id="construct-signifies-default-modifiers"></a><code>(?^...)</code> construct signifies default modifiers</h3>

<p>An ASCII caret <code>&quot;^&quot;</code> immediately following a <code>&quot;(?&quot;</code> in a regular expression now means that the subexpression does not inherit surrounding modifiers such as <code>/i</code>, but reverts to the Perl defaults. Any modifiers following the caret override the defaults.</p>

<p>Stringification of regular expressions now uses this notation. For example, <code>qr/hlagh/i</code> would previously be stringified as <code>(?i-xsm:hlagh)</code>, but now it&#39;s stringified as <code>(?^i:hlagh)</code>.</p>

<p>The main purpose of this change is to allow tests that rely on the stringification <i>not</i> to have to change whenever new modifiers are added. See <a href="perlre.html#Extended-Patterns">&quot;Extended Patterns&quot; in perlre</a>.</p>

<p>This change is likely to break code that compares stringified regular expressions with fixed strings containing <code>?-xism</code>.</p>

<h3 id="/d,-/l,-/u,-and-/a-modifiers"><a class="permalink" href="perl5140delta.html#/d,-/l,-/u,-and-/a-modifiers">#</a><a id="d-l-u-and-a-modifiers"></a><code>/d</code>, <code>/l</code>, <code>/u</code>, and <code>/a</code> modifiers</h3>

<p>Four new regular expression modifiers have been added. These are mutually exclusive: one only can be turned on at a time.</p>

<ul>

<li><p>The <code>/l</code> modifier says to compile the regular expression as if it were in the scope of <code>use locale</code>, even if it is not.</p>

</li>
<li><p>The <code>/u</code> modifier says to compile the regular expression as if it were in the scope of a <code>use feature &#39;unicode_strings&#39;</code> pragma.</p>

</li>
<li><p>The <code>/d</code> (default) modifier is used to override any <code>use locale</code> and <code>use feature &#39;unicode_strings&#39;</code> pragmas in effect at the time of compiling the regular expression.</p>

</li>
<li><p>The <code>/a</code> regular expression modifier restricts <code>\s</code>, <code>\d</code> and <code>\w</code> and the POSIX (<code>[[:posix:]]</code>) character classes to the ASCII range. Their complements and <code>\b</code> and <code>\B</code> are correspondingly affected. Otherwise, <code>/a</code> behaves like the <code>/u</code> modifier, in that case-insensitive matching uses Unicode semantics.</p>

<p>If the <code>/a</code> modifier is repeated, then additionally in case-insensitive matching, no ASCII character can match a non-ASCII character. For example,</p>

<pre><code class="plaintext">&quot;k&quot;     =~ /\N{KELVIN SIGN}/ai
&quot;\xDF&quot; =~ /ss/ai</code></pre>

<p>match but</p>

<pre><code class="plaintext">&quot;k&quot;    =~ /\N{KELVIN SIGN}/aai
&quot;\xDF&quot; =~ /ss/aai</code></pre>

<p>do not match.</p>

</li>
</ul>

<p>See <a href="perlre.html#Modifiers">&quot;Modifiers&quot; in perlre</a> for more detail.</p>

<h3 id="Non-destructive-substitution"><a class="permalink" href="perl5140delta.html#Non-destructive-substitution">#</a><a id="Non"></a>Non-destructive substitution</h3>

<p>The substitution (<code>s///</code>) and transliteration (<code>y///</code>) operators now support an <code>/r</code> option that copies the input variable, carries out the substitution on the copy, and returns the result. The original remains unmodified.</p>

<pre><code>my $old = &quot;cat&quot;;
my $new = $old =~ s/cat/dog/r;
# $old is &quot;cat&quot; and $new is &quot;dog&quot;</code></pre>

<p>This is particularly useful with <code>map</code>. See <a href="perlop.html">perlop</a> for more examples.</p>

<h3 id="Re-entrant-regular-expression-engine"><a class="permalink" href="perl5140delta.html#Re-entrant-regular-expression-engine">#</a><a id="Re"></a>Re-entrant regular expression engine</h3>

<p>It is now safe to use regular expressions within <code>(?{...})</code> and <code>(??{...})</code> code blocks inside regular expressions.</p>

<p>These blocks are still experimental, however, and still have problems with lexical (<code>my</code>) variables and abnormal exiting.</p>

<h3 id="use-re-&#39;/flags&#39;"><a class="permalink" href="perl5140delta.html#use-re-&#39;/flags&#39;">#</a><a id="use"></a><a id="use-re-flags"></a><code>use re &#39;/flags&#39;</code></h3>

<p>The <code>re</code> pragma now has the ability to turn on regular expression flags till the end of the lexical scope:</p>

<pre><code>use re &quot;/x&quot;;
&quot;foo&quot; =~ / (.+) /;  # /x implied</code></pre>

<p>See <a href="re.html#%27%2Fflags%27-mode">&quot;&#39;/flags&#39; mode&quot; in re</a> for details.</p>

<h3 id="\o{...}-for-octals"><a class="permalink" href="perl5140delta.html#%5Co%7B...%7D-for-octals">#</a><a id="o-...-for-octals"></a>\o{...} for octals</h3>

<p>There is a new octal escape sequence, <code>&quot;\o&quot;</code>, in doublequote-like contexts. This construct allows large octal ordinals beyond the current max of 0777 to be represented. It also allows you to specify a character in octal which can safely be concatenated with other regex snippets and which won&#39;t be confused with being a backreference to a regex capture group. See <a href="perlre.html#Capture-groups">&quot;Capture groups&quot; in perlre</a>.</p>

<h3 id="Add-\p{Titlecase}-as-a-synonym-for-\p{Title}"><a class="permalink" href="perl5140delta.html#Add-%5Cp%7BTitlecase%7D-as-a-synonym-for-%5Cp%7BTitle%7D">#</a><a id="Add"></a><a id="Add-p-Titlecase-as-a-synonym-for-p-Title"></a>Add <code>\p{Titlecase}</code> as a synonym for <code>\p{Title}</code></h3>

<p>This synonym is added for symmetry with the Unicode property names <code>\p{Uppercase}</code> and <code>\p{Lowercase}</code>.</p>

<h3 id="Regular-expression-debugging-output-improvement"><a class="permalink" href="perl5140delta.html#Regular-expression-debugging-output-improvement">#</a><a id="Regular1"></a>Regular expression debugging output improvement</h3>

<p>Regular expression debugging output (turned on by <code>use re &#39;debug&#39;</code>) now uses hexadecimal when escaping non-ASCII characters, instead of octal.</p>

<h3 id="Return-value-of-delete-$+{...}"><a class="permalink" href="perl5140delta.html#Return-value-of-delete-$+%7B...%7D">#</a><a id="Return"></a><a id="Return-value-of-delete"></a>Return value of <code>delete $+{...}</code></h3>

<p>Custom regular expression engines can now determine the return value of <code>delete</code> on an entry of <code>%+</code> or <code>%-</code>.</p>

<h2 id="Syntactical-Enhancements"><a class="permalink" href="perl5140delta.html#Syntactical-Enhancements">#</a><a id="Syntactical"></a>Syntactical Enhancements</h2>

<h3 id="Array-and-hash-container-functions-accept-references"><a class="permalink" href="perl5140delta.html#Array-and-hash-container-functions-accept-references">#</a><a id="Array"></a>Array and hash container functions accept references</h3>

<p><b>Warning:</b> This feature is considered experimental, as the exact behaviour may change in a future version of Perl.</p>

<p>All builtin functions that operate directly on array or hash containers now also accept unblessed hard references to arrays or hashes:</p>

<pre><code>|----------------------------+---------------------------|
| Traditional syntax         | Terse syntax              |
|----------------------------+---------------------------|
| push @$arrayref, @stuff    | push $arrayref, @stuff    |
| unshift @$arrayref, @stuff | unshift $arrayref, @stuff |
| pop @$arrayref             | pop $arrayref             |
| shift @$arrayref           | shift $arrayref           |
| splice @$arrayref, 0, 2    | splice $arrayref, 0, 2    |
| keys %$hashref             | keys $hashref             |
| keys @$arrayref            | keys $arrayref            |
| values %$hashref           | values $hashref           |
| values @$arrayref          | values $arrayref          |
| ($k,$v) = each %$hashref   | ($k,$v) = each $hashref   |
| ($k,$v) = each @$arrayref  | ($k,$v) = each $arrayref  |
|----------------------------+---------------------------|</code></pre>

<p>This allows these builtin functions to act on long dereferencing chains or on the return value of subroutines without needing to wrap them in <code>@{}</code> or <code>%{}</code>:</p>

<pre><code>push @{$obj-&gt;tags}, $new_tag;  # old way
push $obj-&gt;tags,    $new_tag;  # new way

for ( keys %{$hoh-&gt;{genres}{artists}} ) {...} # old way 
for ( keys $hoh-&gt;{genres}{artists}    ) {...} # new way </code></pre>

<h3 id="Single-term-prototype"><a class="permalink" href="perl5140delta.html#Single-term-prototype">#</a><a id="Single"></a>Single term prototype</h3>

<p>The <code>+</code> prototype is a special alternative to <code>$</code> that acts like <code>\[@%]</code> when given a literal array or hash variable, but will otherwise force scalar context on the argument. See <a href="perlsub.html#Prototypes">&quot;Prototypes&quot; in perlsub</a>.</p>

<h3 id="package-block-syntax"><a class="permalink" href="perl5140delta.html#package-block-syntax">#</a><a id="package"></a><code>package</code> block syntax</h3>

<p>A package declaration can now contain a code block, in which case the declaration is in scope inside that block only. So <code>package Foo { ... }</code> is precisely equivalent to <code>{ package Foo; ... }</code>. It also works with a version number in the declaration, as in <code>package Foo 1.2 { ... }</code>, which is its most attractive feature. See <a href="perlfunc.html">perlfunc</a>.</p>

<h3 id="Statement-labels-can-appear-in-more-places"><a class="permalink" href="perl5140delta.html#Statement-labels-can-appear-in-more-places">#</a><a id="Statement"></a>Statement labels can appear in more places</h3>

<p>Statement labels can now occur before any type of statement or declaration, such as <code>package</code>.</p>

<h3 id="Stacked-labels"><a class="permalink" href="perl5140delta.html#Stacked-labels">#</a><a id="Stacked"></a>Stacked labels</h3>

<p>Multiple statement labels can now appear before a single statement.</p>

<h3 id="Uppercase-X/B-allowed-in-hexadecimal/binary-literals"><a class="permalink" href="perl5140delta.html#Uppercase-X/B-allowed-in-hexadecimal/binary-literals">#</a><a id="Uppercase"></a><a id="Uppercase-X-B-allowed-in-hexadecimal-binary-literals"></a>Uppercase X/B allowed in hexadecimal/binary literals</h3>

<p>Literals may now use either upper case <code>0X...</code> or <code>0B...</code> prefixes, in addition to the already supported <code>0x...</code> and <code>0b...</code> syntax [perl #76296].</p>

<p>C, Ruby, Python, and PHP already support this syntax, and it makes Perl more internally consistent: a round-trip with <code>eval sprintf &quot;%#X&quot;, 0x10</code> now returns <code>16</code>, just like <code>eval sprintf &quot;%#x&quot;, 0x10</code>.</p>

<h3 id="Overridable-tie-functions"><a class="permalink" href="perl5140delta.html#Overridable-tie-functions">#</a><a id="Overridable"></a>Overridable tie functions</h3>

<p><code>tie</code>, <code>tied</code> and <code>untie</code> can now be overridden [perl #75902].</p>

<h2 id="Exception-Handling"><a class="permalink" href="perl5140delta.html#Exception-Handling">#</a><a id="Exception"></a>Exception Handling</h2>

<p>To make them more reliable and consistent, several changes have been made to how <code>die</code>, <code>warn</code>, and <code>$@</code> behave.</p>

<ul>

<li><p>When an exception is thrown inside an <code>eval</code>, the exception is no longer at risk of being clobbered by destructor code running during unwinding. Previously, the exception was written into <code>$@</code> early in the throwing process, and would be overwritten if <code>eval</code> was used internally in the destructor for an object that had to be freed while exiting from the outer <code>eval</code>. Now the exception is written into <code>$@</code> last thing before exiting the outer <code>eval</code>, so the code running immediately thereafter can rely on the value in <code>$@</code> correctly corresponding to that <code>eval</code>. (<code>$@</code> is still also set before exiting the <code>eval</code>, for the sake of destructors that rely on this.)</p>

<p>Likewise, a <code>local $@</code> inside an <code>eval</code> no longer clobbers any exception thrown in its scope. Previously, the restoration of <code>$@</code> upon unwinding would overwrite any exception being thrown. Now the exception gets to the <code>eval</code> anyway. So <code>local $@</code> is safe before a <code>die</code>.</p>

<p>Exceptions thrown from object destructors no longer modify the <code>$@</code> of the surrounding context. (If the surrounding context was exception unwinding, this used to be another way to clobber the exception being thrown.) Previously such an exception was sometimes emitted as a warning, and then either was string-appended to the surrounding <code>$@</code> or completely replaced the surrounding <code>$@</code>, depending on whether that exception and the surrounding <code>$@</code> were strings or objects. Now, an exception in this situation is always emitted as a warning, leaving the surrounding <code>$@</code> untouched. In addition to object destructors, this also affects any function call run by XS code using the <code>G_KEEPERR</code> flag.</p>

</li>
<li><p>Warnings for <code>warn</code> can now be objects in the same way as exceptions for <code>die</code>. If an object-based warning gets the default handling of writing to standard error, it is stringified as before with the filename and line number appended. But a <code>$SIG{__WARN__}</code> handler now receives an object-based warning as an object, where previously it was passed the result of stringifying the object.</p>

</li>
</ul>

<h2 id="Other-Enhancements"><a class="permalink" href="perl5140delta.html#Other-Enhancements">#</a><a id="Other"></a>Other Enhancements</h2>

<h3 id="Assignment-to-$0-sets-the-legacy-process-name-with-prctl()-on-Linux"><a class="permalink" href="perl5140delta.html#Assignment-to-$0-sets-the-legacy-process-name-with-prctl()-on-Linux">#</a><a id="Assignment"></a><a id="Assignment-to-0-sets-the-legacy-process-name-with-prctl-on-Linux"></a>Assignment to <code>$0</code> sets the legacy process name with prctl() on Linux</h3>

<p>On Linux the legacy process name is now set with <a href="http://man.he.net/man2/prctl">prctl(2)</a>, in addition to altering the POSIX name via <code>argv[0]</code>, as Perl has done since version 4.000. Now system utilities that read the legacy process name such as <i>ps</i>, <i>top</i>, and <i>killall</i> recognize the name you set when assigning to <code>$0</code>. The string you supply is truncated at 16 bytes; this limitation is imposed by Linux.</p>

<h3 id="srand()-now-returns-the-seed"><a class="permalink" href="perl5140delta.html#srand()-now-returns-the-seed">#</a><a id="srand"></a><a id="srand-now-returns-the-seed"></a>srand() now returns the seed</h3>

<p>This allows programs that need to have repeatable results not to have to come up with their own seed-generating mechanism. Instead, they can use srand() and stash the return value for future use. One example is a test program with too many combinations to test comprehensively in the time available for each run. It can test a random subset each time and, should there be a failure, log the seed used for that run so this can later be used to produce the same results.</p>

<h3 id="printf-like-functions-understand-post-1980-size-modifiers"><a class="permalink" href="perl5140delta.html#printf-like-functions-understand-post-1980-size-modifiers">#</a><a id="printf"></a>printf-like functions understand post-1980 size modifiers</h3>

<p>Perl&#39;s printf and sprintf operators, and Perl&#39;s internal printf replacement function, now understand the C90 size modifiers &quot;hh&quot; (<code>char</code>), &quot;z&quot; (<code>size_t</code>), and &quot;t&quot; (<code>ptrdiff_t</code>). Also, when compiled with a C99 compiler, Perl now understands the size modifier &quot;j&quot; (<code>intmax_t</code>) (but this is not portable).</p>

<p>So, for example, on any modern machine, <code>sprintf(&quot;%hhd&quot;, 257)</code> returns &quot;1&quot;.</p>

<h3 id="New-global-variable-${^GLOBAL_PHASE}"><a class="permalink" href="perl5140delta.html#New-global-variable-$%7B%5EGLOBAL_PHASE%7D">#</a><a id="New1"></a><a id="New-global-variable-GLOBAL_PHASE"></a>New global variable <code>${^GLOBAL_PHASE}</code></h3>

<p>A new global variable, <code>${^GLOBAL_PHASE}</code>, has been added to allow introspection of the current phase of the Perl interpreter. It&#39;s explained in detail in <a href="perlvar.html#%24%7B%5EGLOBAL_PHASE%7D">&quot;${^GLOBAL_PHASE}&quot; in perlvar</a> and in <a href="perlmod.html#BEGIN%2C-UNITCHECK%2C-CHECK%2C-INIT-and-END">&quot;BEGIN, UNITCHECK, CHECK, INIT and END&quot; in perlmod</a>.</p>

<h3 id="-d:-foo-calls-Devel::foo::unimport"><a class="permalink" href="perl5140delta.html#-d:-foo-calls-Devel::foo::unimport">#</a><a id="d:-foo-calls-Devel::foo::unimport"></a><code>-d:-foo</code> calls <code>Devel::foo::unimport</code></h3>

<p>The syntax <b>-d:foo</b> was extended in 5.6.1 to make <b>-d:foo=bar</b> equivalent to <b>-MDevel::foo=bar</b>, which expands internally to <code>use Devel::foo &#39;bar&#39;</code>. Perl now allows prefixing the module name with <b>-</b>, with the same semantics as <b>-M</b>; that is:</p>

<dl>

<dt id="-d:-foo"><a class="permalink" href="perl5140delta.html#-d:-foo">#</a><a id="d:-foo"></a><code>-d:-foo</code></dt>
<dd>

<p>Equivalent to <b>-M-Devel::foo</b>: expands to <code>no Devel::foo</code> and calls <code>Devel::foo-&gt;unimport()</code> if that method exists.</p>

</dd>
<dt id="-d:-foo=bar"><a class="permalink" href="perl5140delta.html#-d:-foo=bar">#</a><a id="d:-foo-bar"></a><code>-d:-foo=bar</code></dt>
<dd>

<p>Equivalent to <b>-M-Devel::foo=bar</b>: expands to <code>no Devel::foo &#39;bar&#39;</code>, and calls <code>Devel::foo-&gt;unimport(&quot;bar&quot;)</code> if that method exists.</p>

</dd>
</dl>

<p>This is particularly useful for suppressing the default actions of a <code>Devel::*</code> module&#39;s <code>import</code> method whilst still loading it for debugging.</p>

<h3 id="Filehandle-method-calls-load-IO::File-on-demand"><a class="permalink" href="perl5140delta.html#Filehandle-method-calls-load-IO::File-on-demand">#</a><a id="Filehandle"></a>Filehandle method calls load <a href="./IO::File.html">IO::File</a> on demand</h3>

<p>When a method call on a filehandle would die because the method cannot be resolved and <a href="./IO::File.html">IO::File</a> has not been loaded, Perl now loads <a href="./IO::File.html">IO::File</a> via <code>require</code> and attempts method resolution again:</p>

<pre><code>open my $fh, &quot;&gt;&quot;, $file;
$fh-&gt;binmode(&quot;:raw&quot;);     # loads IO::File and succeeds</code></pre>

<p>This also works for globs like <code>STDOUT</code>, <code>STDERR</code>, and <code>STDIN</code>:</p>

<pre><code>STDOUT-&gt;autoflush(1);</code></pre>

<p>Because this on-demand load happens only if method resolution fails, the legacy approach of manually loading an <a href="./IO::File.html">IO::File</a> parent class for partial method support still works as expected:</p>

<pre><code>use IO::Handle;
open my $fh, &quot;&gt;&quot;, $file;
$fh-&gt;autoflush(1);        # IO::File not loaded</code></pre>

<h3 id="Improved-IPv6-support"><a class="permalink" href="perl5140delta.html#Improved-IPv6-support">#</a><a id="Improved"></a>Improved IPv6 support</h3>

<p>The <code>Socket</code> module provides new affordances for IPv6, including implementations of the <code>Socket::getaddrinfo()</code> and <code>Socket::getnameinfo()</code> functions, along with related constants and a handful of new functions. See <a href="Socket.html">Socket</a>.</p>

<h3 id="DTrace-probes-now-include-package-name"><a class="permalink" href="perl5140delta.html#DTrace-probes-now-include-package-name">#</a><a id="DTrace"></a>DTrace probes now include package name</h3>

<p>The <code>DTrace</code> probes now include an additional argument, <code>arg3</code>, which contains the package the subroutine being entered or left was compiled in.</p>

<p>For example, using the following DTrace script:</p>

<pre><code>perl$target:::sub-entry
{
    printf(&quot;%s::%s\n&quot;, copyinstr(arg0), copyinstr(arg3));
}</code></pre>

<p>and then running:</p>

<pre><code class="plaintext">$ perl -e &#39;sub test { }; test&#39;</code></pre>

<p><code>DTrace</code> will print:</p>

<pre><code class="plaintext">main::test</code></pre>

<h2 id="New-C-APIs"><a class="permalink" href="perl5140delta.html#New-C-APIs">#</a><a id="New2"></a>New C APIs</h2>

<p>See <a href="perl5140delta.html#Internal-Changes">&quot;Internal Changes&quot;</a>.</p>

<h1 id="Security"><a class="permalink" href="perl5140delta.html#Security">#</a>Security</h1>

<h2 id="User-defined-regular-expression-properties"><a class="permalink" href="perl5140delta.html#User-defined-regular-expression-properties">#</a><a id="User"></a>User-defined regular expression properties</h2>

<p><a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a> documented that you can create custom properties by defining subroutines whose names begin with &quot;In&quot; or &quot;Is&quot;. However, Perl did not actually enforce that naming restriction, so <code>\p{foo::bar}</code> could call foo::bar() if it existed. The documented convention is now enforced.</p>

<p>Also, Perl no longer allows tainted regular expressions to invoke a user-defined property. It simply dies instead [perl #82616].</p>

<h1 id="Incompatible-Changes"><a class="permalink" href="perl5140delta.html#Incompatible-Changes">#</a><a id="Incompatible"></a>Incompatible Changes</h1>

<p>Perl 5.14.0 is not binary-compatible with any previous stable release.</p>

<p>In addition to the sections that follow, see <a href="perl5140delta.html#C-API-Changes">&quot;C API Changes&quot;</a>.</p>

<h2 id="Regular-Expressions-and-String-Escapes"><a class="permalink" href="perl5140delta.html#Regular-Expressions-and-String-Escapes">#</a><a id="Regular2"></a>Regular Expressions and String Escapes</h2>

<h3 id="Inverted-bracketed-character-classes-and-multi-character-folds"><a class="permalink" href="perl5140delta.html#Inverted-bracketed-character-classes-and-multi-character-folds">#</a><a id="Inverted"></a>Inverted bracketed character classes and multi-character folds</h3>

<p>Some characters match a sequence of two or three characters in <code>/i</code> regular expression matching under Unicode rules. One example is <code>LATIN SMALL LETTER SHARP S</code> which matches the sequence <code>ss</code>.</p>

<pre><code class="plaintext">&#39;ss&#39; =~ /\A[\N{LATIN SMALL LETTER SHARP S}]\z/i  # Matches</code></pre>

<p>This, however, can lead to very counter-intuitive results, especially when inverted. Because of this, Perl 5.14 does not use multi-character <code>/i</code> matching in inverted character classes.</p>

<pre><code class="plaintext">&#39;ss&#39; =~ /\A[^\N{LATIN SMALL LETTER SHARP S}]+\z/i  # ???</code></pre>

<p>This should match any sequences of characters that aren&#39;t the <code>SHARP S</code> nor what <code>SHARP S</code> matches under <code>/i</code>. <code>&quot;s&quot;</code> isn&#39;t <code>SHARP S</code>, but Unicode says that <code>&quot;ss&quot;</code> is what <code>SHARP S</code> matches under <code>/i</code>. So which one &quot;wins&quot;? Do you fail the match because the string has <code>ss</code> or accept it because it has an <code>s</code> followed by another <code>s</code>?</p>

<p>Earlier releases of Perl did allow this multi-character matching, but due to bugs, it mostly did not work.</p>

<h3 id="\400-\777"><a class="permalink" href="perl5140delta.html#%5C400-%5C777">#</a><a id="pod-400--777"></a>\400-\777</h3>

<p>In certain circumstances, <code>\400</code>-<code>\777</code> in regexes have behaved differently than they behave in all other doublequote-like contexts. Since 5.10.1, Perl has issued a deprecation warning when this happens. Now, these literals behave the same in all doublequote-like contexts, namely to be equivalent to <code>\x{100}</code>-<code>\x{1FF}</code>, with no deprecation warning.</p>

<p>Use of <code>\400</code>-<code>\777</code> in the command-line option <b>-0</b> retain their conventional meaning. They slurp whole input files; previously, this was documented only for <b>-0777</b>.</p>

<p>Because of various ambiguities, you should use the new <code>\o{...}</code> construct to represent characters in octal instead.</p>

<h3 id="Most-\p{}-properties-are-now-immune-to-case-insensitive-matching"><a class="permalink" href="perl5140delta.html#Most-%5Cp%7B%7D-properties-are-now-immune-to-case-insensitive-matching">#</a><a id="Most"></a><a id="Most-p-properties-are-now-immune-to-case-insensitive-matching"></a>Most <code>\p{}</code> properties are now immune to case-insensitive matching</h3>

<p>For most Unicode properties, it doesn&#39;t make sense to have them match differently under <code>/i</code> case-insensitive matching. Doing so can lead to unexpected results and potential security holes. For example</p>

<pre><code class="plaintext">m/\p{ASCII_Hex_Digit}+/i</code></pre>

<p>could previously match non-ASCII characters because of the Unicode matching rules (although there were several bugs with this). Now matching under <code>/i</code> gives the same results as non-<code>/i</code> matching except for those few properties where people have come to expect differences, namely the ones where casing is an integral part of their meaning, such as <code>m/\p{Uppercase}/i</code> and <code>m/\p{Lowercase}/i</code>, both of which match the same code points as matched by <code>m/\p{Cased}/i</code>. Details are in <a href="perlrecharclass.html#Unicode-Properties">&quot;Unicode Properties&quot; in perlrecharclass</a>.</p>

<p>User-defined property handlers that need to match differently under <code>/i</code> must be changed to read the new boolean parameter passed to them, which is non-zero if case-insensitive matching is in effect and 0 otherwise. See <a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>.</p>

<h3 id="\p{}-implies-Unicode-semantics"><a class="permalink" href="perl5140delta.html#%5Cp%7B%7D-implies-Unicode-semantics">#</a><a id="p-implies-Unicode-semantics"></a>\p{} implies Unicode semantics</h3>

<p>Specifying a Unicode property in the pattern indicates that the pattern is meant for matching according to Unicode rules, the way <code>\N{<i>NAME</i>}</code> does.</p>

<h3 id="Regular-expressions-retain-their-localeness-when-interpolated"><a class="permalink" href="perl5140delta.html#Regular-expressions-retain-their-localeness-when-interpolated">#</a><a id="Regular3"></a>Regular expressions retain their localeness when interpolated</h3>

<p>Regular expressions compiled under <code>use locale</code> now retain this when interpolated into a new regular expression compiled outside a <code>use locale</code>, and vice-versa.</p>

<p>Previously, one regular expression interpolated into another inherited the localeness of the surrounding regex, losing whatever state it originally had. This is considered a bug fix, but may trip up code that has come to rely on the incorrect behaviour.</p>

<h3 id="Stringification-of-regexes-has-changed"><a class="permalink" href="perl5140delta.html#Stringification-of-regexes-has-changed">#</a><a id="Stringification"></a>Stringification of regexes has changed</h3>

<p>Default regular expression modifiers are now notated using <code>(?^...)</code>. Code relying on the old stringification will fail. This is so that when new modifiers are added, such code won&#39;t have to keep changing each time this happens, because the stringification will automatically incorporate the new modifiers.</p>

<p>Code that needs to work properly with both old- and new-style regexes can avoid the whole issue by using (for perls since 5.9.5; see <a href="re.html">re</a>):</p>

<pre><code>use re qw(regexp_pattern);
my ($pat, $mods) = regexp_pattern($re_ref);</code></pre>

<p>If the actual stringification is important or older Perls need to be supported, you can use something like the following:</p>

<pre><code># Accept both old and new-style stringification
my $modifiers = (qr/foobar/ =~ /\Q(?^/) ? &quot;^&quot; : &quot;-xism&quot;;</code></pre>

<p>And then use <code>$modifiers</code> instead of <code>-xism</code>.</p>

<h3 id="Run-time-code-blocks-in-regular-expressions-inherit-pragmata"><a class="permalink" href="perl5140delta.html#Run-time-code-blocks-in-regular-expressions-inherit-pragmata">#</a><a id="Run"></a>Run-time code blocks in regular expressions inherit pragmata</h3>

<p>Code blocks in regular expressions (<code>(?{...})</code> and <code>(??{...})</code>) previously did not inherit pragmata (strict, warnings, etc.) if the regular expression was compiled at run time as happens in cases like these two:</p>

<pre><code>use re &quot;eval&quot;;
$foo =~ $bar; # when $bar contains (?{...})
$foo =~ /$bar(?{ $finished = 1 })/;</code></pre>

<p>This bug has now been fixed, but code that relied on the buggy behaviour may need to be fixed to account for the correct behaviour.</p>

<h2 id="Stashes-and-Package-Variables"><a class="permalink" href="perl5140delta.html#Stashes-and-Package-Variables">#</a><a id="Stashes"></a>Stashes and Package Variables</h2>

<h3 id="Localised-tied-hashes-and-arrays-are-no-longed-tied"><a class="permalink" href="perl5140delta.html#Localised-tied-hashes-and-arrays-are-no-longed-tied">#</a><a id="Localised"></a>Localised tied hashes and arrays are no longed tied</h3>

<p>In the following:</p>

<pre><code>    tie @a, ...;
    {
	    local @a;
	    # here, @a is a now a new, untied array
    }
    # here, @a refers again to the old, tied array</code></pre>

<p>Earlier versions of Perl incorrectly tied the new local array. This has now been fixed. This fix could however potentially cause a change in behaviour of some code.</p>

<h3 id="Stashes-are-now-always-defined"><a class="permalink" href="perl5140delta.html#Stashes-are-now-always-defined">#</a><a id="Stashes1"></a>Stashes are now always defined</h3>

<p><code>defined %Foo::</code> now always returns true, even when no symbols have yet been defined in that package.</p>

<p>This is a side-effect of removing a special-case kludge in the tokeniser, added for 5.10.0, to hide side-effects of changes to the internal storage of hashes. The fix drastically reduces hashes&#39; memory overhead.</p>

<p>Calling defined on a stash has been deprecated since 5.6.0, warned on lexicals since 5.6.0, and warned for stashes and other package variables since 5.12.0. <code>defined %hash</code> has always exposed an implementation detail: emptying a hash by deleting all entries from it does not make <code>defined %hash</code> false. Hence <code>defined %hash</code> is not valid code to determine whether an arbitrary hash is empty. Instead, use the behaviour of an empty <code>%hash</code> always returning false in scalar context.</p>

<h3 id="Clearing-stashes"><a class="permalink" href="perl5140delta.html#Clearing-stashes">#</a><a id="Clearing"></a>Clearing stashes</h3>

<p>Stash list assignment <code>%foo:: = ()</code> used to make the stash temporarily anonymous while it was being emptied. Consequently, any of its subroutines referenced elsewhere would become anonymous, showing up as &quot;(unknown)&quot; in <code>caller</code>. They now retain their package names such that <code>caller</code> returns the original sub name if there is still a reference to its typeglob and &quot;foo::__ANON__&quot; otherwise [perl #79208].</p>

<h3 id="Dereferencing-typeglobs"><a class="permalink" href="perl5140delta.html#Dereferencing-typeglobs">#</a><a id="Dereferencing"></a>Dereferencing typeglobs</h3>

<p>If you assign a typeglob to a scalar variable:</p>

<pre><code>$glob = *foo;</code></pre>

<p>the glob that is copied to <code>$glob</code> is marked with a special flag indicating that the glob is just a copy. This allows subsequent assignments to <code>$glob</code> to overwrite the glob. The original glob, however, is immutable.</p>

<p>Some Perl operators did not distinguish between these two types of globs. This would result in strange behaviour in edge cases: <code>untie $scalar</code> would not untie the scalar if the last thing assigned to it was a glob (because it treated it as <code>untie *$scalar</code>, which unties a handle). Assignment to a glob slot (such as <code>*$glob = \@some_array</code>) would simply assign <code>\@some_array</code> to <code>$glob</code>.</p>

<p>To fix this, the <code>*{}</code> operator (including its <code>*foo</code> and <code>*$foo</code> forms) has been modified to make a new immutable glob if its operand is a glob copy. This allows operators that make a distinction between globs and scalars to be modified to treat only immutable globs as globs. (<code>tie</code>, <code>tied</code> and <code>untie</code> have been left as they are for compatibility&#39;s sake, but will warn. See <a href="perl5140delta.html#Deprecations">&quot;Deprecations&quot;</a>.)</p>

<p>This causes an incompatible change in code that assigns a glob to the return value of <code>*{}</code> when that operator was passed a glob copy. Take the following code, for instance:</p>

<pre><code>$glob = *foo;
*$glob = *bar;</code></pre>

<p>The <code>*$glob</code> on the second line returns a new immutable glob. That new glob is made an alias to <code>*bar</code>. Then it is discarded. So the second assignment has no effect.</p>

<p>See <a href="https://github.com/Perl/perl5/issues/10625">https://github.com/Perl/perl5/issues/10625</a> for more detail.</p>

<h3 id="Magic-variables-outside-the-main-package"><a class="permalink" href="perl5140delta.html#Magic-variables-outside-the-main-package">#</a><a id="Magic"></a>Magic variables outside the main package</h3>

<p>In previous versions of Perl, magic variables like <code>$!</code>, <code>%SIG</code>, etc. would &quot;leak&quot; into other packages. So <code>%foo::SIG</code> could be used to access signals, <code>${&quot;foo::!&quot;}</code> (with strict mode off) to access C&#39;s <code>errno</code>, etc.</p>

<p>This was a bug, or an &quot;unintentional&quot; feature, which caused various ill effects, such as signal handlers being wiped when modules were loaded, etc.</p>

<p>This has been fixed (or the feature has been removed, depending on how you see it).</p>

<h3 id="local($_)-strips-all-magic-from-$_"><a class="permalink" href="perl5140delta.html#local($_)-strips-all-magic-from-$_">#</a><a id="local"></a><a id="local-_-strips-all-magic-from-_"></a>local($_) strips all magic from $_</h3>

<p>local() on scalar variables gives them a new value but keeps all their magic intact. This has proven problematic for the default scalar variable $_, where <a href="perlsub.html">perlsub</a> recommends that any subroutine that assigns to $_ should first localize it. This would throw an exception if $_ is aliased to a read-only variable, and could in general have various unintentional side-effects.</p>

<p>Therefore, as an exception to the general rule, local($_) will not only assign a new value to $_, but also remove all existing magic from it as well.</p>

<h3 id="Parsing-of-package-and-variable-names"><a class="permalink" href="perl5140delta.html#Parsing-of-package-and-variable-names">#</a><a id="Parsing"></a>Parsing of package and variable names</h3>

<p>Parsing the names of packages and package variables has changed: multiple adjacent pairs of colons, as in <code>foo::::bar</code>, are now all treated as package separators.</p>

<p>Regardless of this change, the exact parsing of package separators has never been guaranteed and is subject to change in future Perl versions.</p>

<h2 id="Changes-to-Syntax-or-to-Perl-Operators"><a class="permalink" href="perl5140delta.html#Changes-to-Syntax-or-to-Perl-Operators">#</a><a id="Changes"></a>Changes to Syntax or to Perl Operators</h2>

<h3 id="given-return-values"><a class="permalink" href="perl5140delta.html#given-return-values">#</a><a id="given"></a><code>given</code> return values</h3>

<p><code>given</code> blocks now return the last evaluated expression, or an empty list if the block was exited by <code>break</code>. Thus you can now write:</p>

<pre><code>my $type = do {
 given ($num) {
  break     when undef;
  &quot;integer&quot; when /^[+-]?[0-9]+$/;
  &quot;float&quot;   when /^[+-]?[0-9]+(?:\.[0-9]+)?$/;
  &quot;unknown&quot;;
 }
};</code></pre>

<p>See <a href="perlsyn.html#Return-value">&quot;Return value&quot; in perlsyn</a> for details.</p>

<h3 id="Change-in-parsing-of-certain-prototypes"><a class="permalink" href="perl5140delta.html#Change-in-parsing-of-certain-prototypes">#</a><a id="Change"></a>Change in parsing of certain prototypes</h3>

<p>Functions declared with the following prototypes now behave correctly as unary functions:</p>

<pre><code class="plaintext">*
\$ \% \@ \* \&amp;
\[...]
;$ ;*
;\$ ;\% etc.
;\[...]</code></pre>

<p>Due to this bug fix [perl #75904], functions using the <code>(*)</code>, <code>(;$)</code> and <code>(;*)</code> prototypes are parsed with higher precedence than before. So in the following example:</p>

<pre><code>sub foo(;$);
foo $a &lt; $b;</code></pre>

<p>the second line is now parsed correctly as <code>foo($a) &lt; $b</code>, rather than <code>foo($a &lt; $b)</code>. This happens when one of these operators is used in an unparenthesised argument:</p>

<pre><code class="plaintext">&lt; &gt; &lt;= &gt;= lt gt le ge
== != &lt;=&gt; eq ne cmp ~~
&amp;
| ^
&amp;&amp;
|| //
.. ...
?:
= += -= *= etc.
, =&gt;</code></pre>

<h3 id="Smart-matching-against-array-slices"><a class="permalink" href="perl5140delta.html#Smart-matching-against-array-slices">#</a><a id="Smart"></a>Smart-matching against array slices</h3>

<p>Previously, the following code resulted in a successful match:</p>

<pre><code>my @a = qw(a y0 z);
my @b = qw(a x0 z);
@a[0 .. $#b] ~~ @b;</code></pre>

<p>This odd behaviour has now been fixed [perl #77468].</p>

<h3 id="Negation-treats-strings-differently-from-before"><a class="permalink" href="perl5140delta.html#Negation-treats-strings-differently-from-before">#</a><a id="Negation"></a>Negation treats strings differently from before</h3>

<p>The unary negation operator, <code>-</code>, now treats strings that look like numbers as numbers [perl #57706].</p>

<h3 id="Negative-zero"><a class="permalink" href="perl5140delta.html#Negative-zero">#</a><a id="Negative"></a>Negative zero</h3>

<p>Negative zero (-0.0), when converted to a string, now becomes &quot;0&quot; on all platforms. It used to become &quot;-0&quot; on some, but &quot;0&quot; on others.</p>

<p>If you still need to determine whether a zero is negative, use <code>sprintf(&quot;%g&quot;, $zero) =~ /^-/</code> or the <a href="./Data::Float.html">Data::Float</a> module on CPAN.</p>

<h3 id=":=-is-now-a-syntax-error"><a class="permalink" href="perl5140delta.html#:=-is-now-a-syntax-error">#</a><a id="is-now-a-syntax-error"></a><code>:=</code> is now a syntax error</h3>

<p>Previously <code>my $pi := 4</code> was exactly equivalent to <code>my $pi : = 4</code>, with the <code>:</code> being treated as the start of an attribute list, ending before the <code>=</code>. The use of <code>:=</code> to mean <code>: =</code> was deprecated in 5.12.0, and is now a syntax error. This allows future use of <code>:=</code> as a new token.</p>

<p>Outside the core&#39;s tests for it, we find no Perl 5 code on CPAN using this construction, so we believe that this change will have little impact on real-world codebases.</p>

<p>If it is absolutely necessary to have empty attribute lists (for example, because of a code generator), simply avoid the error by adding a space before the <code>=</code>.</p>

<h3 id="Change-in-the-parsing-of-identifiers"><a class="permalink" href="perl5140delta.html#Change-in-the-parsing-of-identifiers">#</a><a id="Change1"></a>Change in the parsing of identifiers</h3>

<p>Characters outside the Unicode &quot;XIDStart&quot; set are no longer allowed at the beginning of an identifier. This means that certain accents and marks that normally follow an alphabetic character may no longer be the first character of an identifier.</p>

<h2 id="Threads-and-Processes"><a class="permalink" href="perl5140delta.html#Threads-and-Processes">#</a><a id="Threads1"></a>Threads and Processes</h2>

<h3 id="Directory-handles-not-copied-to-threads"><a class="permalink" href="perl5140delta.html#Directory-handles-not-copied-to-threads">#</a><a id="Directory"></a>Directory handles not copied to threads</h3>

<p>On systems other than Windows that do not have a <code>fchdir</code> function, newly-created threads no longer inherit directory handles from their parent threads. Such programs would usually have crashed anyway [perl #75154].</p>

<h3 id="close-on-shared-pipes"><a class="permalink" href="perl5140delta.html#close-on-shared-pipes">#</a><a id="close"></a><code>close</code> on shared pipes</h3>

<p>To avoid deadlocks, the <code>close</code> function no longer waits for the child process to exit if the underlying file descriptor is still in use by another thread. It returns true in such cases.</p>

<h3 id="fork()-emulation-will-not-wait-for-signalled-children"><a class="permalink" href="perl5140delta.html#fork()-emulation-will-not-wait-for-signalled-children">#</a><a id="fork"></a><a id="fork-emulation-will-not-wait-for-signalled-children"></a>fork() emulation will not wait for signalled children</h3>

<p>On Windows parent processes would not terminate until all forked children had terminated first. However, <code>kill(&quot;KILL&quot;, ...)</code> is inherently unstable on pseudo-processes, and <code>kill(&quot;TERM&quot;, ...)</code> might not get delivered if the child is blocked in a system call.</p>

<p>To avoid the deadlock and still provide a safe mechanism to terminate the hosting process, Perl now no longer waits for children that have been sent a SIGTERM signal. It is up to the parent process to waitpid() for these children if child-cleanup processing must be allowed to finish. However, it is also then the responsibility of the parent to avoid the deadlock by making sure the child process can&#39;t be blocked on I/O.</p>

<p>See <a href="perlfork.html">perlfork</a> for more information about the fork() emulation on Windows.</p>

<h2 id="Configuration"><a class="permalink" href="perl5140delta.html#Configuration">#</a>Configuration</h2>

<h3 id="Naming-fixes-in-Policy_sh.SH-may-invalidate-Policy.sh"><a class="permalink" href="perl5140delta.html#Naming-fixes-in-Policy_sh.SH-may-invalidate-Policy.sh">#</a><a id="Naming"></a>Naming fixes in Policy_sh.SH may invalidate Policy.sh</h3>

<p>Several long-standing typos and naming confusions in <i>Policy_sh.SH</i> have been fixed, standardizing on the variable names used in <i>config.sh</i>.</p>

<p>This will change the behaviour of <i>Policy.sh</i> if you happen to have been accidentally relying on its incorrect behaviour.</p>

<h3 id="Perl-source-code-is-read-in-text-mode-on-Windows"><a class="permalink" href="perl5140delta.html#Perl-source-code-is-read-in-text-mode-on-Windows">#</a><a id="Perl"></a>Perl source code is read in text mode on Windows</h3>

<p>Perl scripts used to be read in binary mode on Windows for the benefit of the <a href="ByteLoader.html">ByteLoader</a> module (which is no longer part of core Perl). This had the side-effect of breaking various operations on the <code>DATA</code> filehandle, including seek()/tell(), and even simply reading from <code>DATA</code> after filehandles have been flushed by a call to system(), backticks, fork() etc.</p>

<p>The default build options for Windows have been changed to read Perl source code on Windows in text mode now. <a href="ByteLoader.html">ByteLoader</a> will (hopefully) be updated on CPAN to automatically handle this situation [perl #28106].</p>

<h1 id="Deprecations"><a class="permalink" href="perl5140delta.html#Deprecations">#</a>Deprecations</h1>

<p>See also <a href="perl5140delta.html#Deprecated-C-APIs">&quot;Deprecated C APIs&quot;</a>.</p>

<h2 id="Omitting-a-space-between-a-regular-expression-and-subsequent-word"><a class="permalink" href="perl5140delta.html#Omitting-a-space-between-a-regular-expression-and-subsequent-word">#</a><a id="Omitting"></a>Omitting a space between a regular expression and subsequent word</h2>

<p>Omitting the space between a regular expression operator or its modifiers and the following word is deprecated. For example, <code>m/foo/sand $bar</code> is for now still parsed as <code>m/foo/s and $bar</code>, but will now issue a warning.</p>

<h2 id="\cX"><a class="permalink" href="perl5140delta.html#%5CcX">#</a><a id="cX"></a><code>\c<i>X</i></code></h2>

<p>The backslash-c construct was designed as a way of specifying non-printable characters, but there were no restrictions (on ASCII platforms) on what the character following the <code>c</code> could be. Now, a deprecation warning is raised if that character isn&#39;t an ASCII character. Also, a deprecation warning is raised for <code>&quot;\c{&quot;</code> (which is the same as simply saying <code>&quot;;&quot;</code>).</p>

<h2 id="&quot;\b{&quot;-and-&quot;\B{&quot;"><a class="permalink" href="perl5140delta.html#%22%5Cb%7B%22-and-%22%5CB%7B%22">#</a><a id="b-and-B"></a><code>&quot;\b{&quot;</code> and <code>&quot;\B{&quot;</code></h2>

<p>In regular expressions, a literal <code>&quot;{&quot;</code> immediately following a <code>&quot;\b&quot;</code> (not in a bracketed character class) or a <code>&quot;\B{&quot;</code> is now deprecated to allow for its future use by Perl itself.</p>

<h2 id="Perl-4-era-.pl-libraries"><a class="permalink" href="perl5140delta.html#Perl-4-era-.pl-libraries">#</a><a id="Perl1"></a>Perl 4-era .pl libraries</h2>

<p>Perl bundles a handful of library files that predate Perl 5. This bundling is now deprecated for most of these files, which are now available from CPAN. The affected files now warn when run, if they were installed as part of the core.</p>

<p>This is a mandatory warning, not obeying <b>-X</b> or lexical warning bits. The warning is modelled on that supplied by <i>deprecate.pm</i> for deprecated-in-core <i>.pm</i> libraries. It points to the specific CPAN distribution that contains the <i>.pl</i> libraries. The CPAN versions, of course, do not generate the warning.</p>

<h2 id="List-assignment-to-$["><a class="permalink" href="perl5140delta.html#List-assignment-to-$%5B">#</a><a id="List"></a><a id="List-assignment-to"></a>List assignment to <code>$[</code></h2>

<p>Assignment to <code>$[</code> was deprecated and started to give warnings in Perl version 5.12.0. This version of Perl (5.14) now also emits a warning when assigning to <code>$[</code> in list context. This fixes an oversight in 5.12.0.</p>

<h2 id="Use-of-qw(...)-as-parentheses"><a class="permalink" href="perl5140delta.html#Use-of-qw(...)-as-parentheses">#</a><a id="Use"></a><a id="Use-of-qw-...-as-parentheses"></a>Use of qw(...) as parentheses</h2>

<p>Historically the parser fooled itself into thinking that <code>qw(...)</code> literals were always enclosed in parentheses, and as a result you could sometimes omit parentheses around them:</p>

<pre><code>for $x qw(a b c) { ... }</code></pre>

<p>The parser no longer lies to itself in this way. Wrap the list literal in parentheses like this:</p>

<pre><code>for $x (qw(a b c)) { ... }</code></pre>

<p>This is being deprecated because the parentheses in <code>for $i (1,2,3) { ... }</code> are not part of expression syntax. They are part of the statement syntax, with the <code>for</code> statement wanting literal parentheses. The synthetic parentheses that a <code>qw</code> expression acquired were only intended to be treated as part of expression syntax.</p>

<p>Note that this does not change the behaviour of cases like:</p>

<pre><code>use POSIX qw(setlocale localeconv);
our @EXPORT = qw(foo bar baz);</code></pre>

<p>where parentheses were never required around the expression.</p>

<h2 id="\N{BELL}"><a class="permalink" href="perl5140delta.html#%5CN%7BBELL%7D">#</a><a id="N-BELL"></a><code>\N{BELL}</code></h2>

<p>This is because Unicode is using that name for a different character. See <a href="perl5140delta.html#Unicode-Version-6.0-is-now-supported-%28mostly%29">&quot;Unicode Version 6.0 is now supported (mostly)&quot;</a> for more explanation.</p>

<h2 id="?PATTERN?"><a class="permalink" href="perl5140delta.html#?PATTERN?">#</a><a id="PATTERN"></a><code>?PATTERN?</code></h2>

<p><code>?PATTERN?</code> (without the initial <code>m</code>) has been deprecated and now produces a warning. This is to allow future use of <code>?</code> in new operators. The match-once functionality is still available as <code>m?PATTERN?</code>.</p>

<h2 id="Tie-functions-on-scalars-holding-typeglobs"><a class="permalink" href="perl5140delta.html#Tie-functions-on-scalars-holding-typeglobs">#</a><a id="Tie"></a>Tie functions on scalars holding typeglobs</h2>

<p>Calling a tie function (<code>tie</code>, <code>tied</code>, <code>untie</code>) with a scalar argument acts on a filehandle if the scalar happens to hold a typeglob.</p>

<p>This is a long-standing bug that will be removed in Perl 5.16, as there is currently no way to tie the scalar itself when it holds a typeglob, and no way to untie a scalar that has had a typeglob assigned to it.</p>

<p>Now there is a deprecation warning whenever a tie function is used on a handle without an explicit <code>*</code>.</p>

<h2 id="User-defined-case-mapping"><a class="permalink" href="perl5140delta.html#User-defined-case-mapping">#</a><a id="User1"></a>User-defined case-mapping</h2>

<p>This feature is being deprecated due to its many issues, as documented in <a href="perlunicode.html#User-Defined-Case-Mappings-%28for-serious-hackers-only%29">&quot;User-Defined Case Mappings (for serious hackers only)&quot; in perlunicode</a>. This feature will be removed in Perl 5.16. Instead use the CPAN module <a href="./Unicode::Casing.html">Unicode::Casing</a>, which provides improved functionality.</p>

<h2 id="Deprecated-modules"><a class="permalink" href="perl5140delta.html#Deprecated-modules">#</a><a id="Deprecated"></a>Deprecated modules</h2>

<p>The following module will be removed from the core distribution in a future release, and should be installed from CPAN instead. Distributions on CPAN that require this should add it to their prerequisites. The core version of these module now issues a deprecation warning.</p>

<p>If you ship a packaged version of Perl, either alone or as part of a larger system, then you should carefully consider the repercussions of core module deprecations. You may want to consider shipping your default build of Perl with a package for the deprecated module that installs into <code>vendor</code> or <code>site</code> Perl library directories. This will inhibit the deprecation warnings.</p>

<p>Alternatively, you may want to consider patching <i>lib/deprecate.pm</i> to provide deprecation warnings specific to your packaging system or distribution of Perl, consistent with how your packaging system or distribution manages a staged transition from a release where the installation of a single package provides the given functionality, to a later release where the system administrator needs to know to install multiple packages to get that same functionality.</p>

<p>You can silence these deprecation warnings by installing the module in question from CPAN. To install the latest version of it by role rather than by name, just install <code>Task::Deprecations::5_14</code>.</p>

<dl>

<dt id="Devel::DProf"><a class="permalink" href="perl5140delta.html#Devel::DProf">#</a><a id="Devel"></a><a href="./Devel::DProf.html">Devel::DProf</a></dt>
<dd>

<p>We strongly recommend that you install and use <a href="./Devel::NYTProf.html">Devel::NYTProf</a> instead of <a href="./Devel::DProf.html">Devel::DProf</a>, as <a href="./Devel::NYTProf.html">Devel::NYTProf</a> offers significantly improved profiling and reporting.</p>

</dd>
</dl>

<h1 id="Performance-Enhancements"><a class="permalink" href="perl5140delta.html#Performance-Enhancements">#</a><a id="Performance"></a>Performance Enhancements</h1>

<h2 id="&quot;Safe-signals&quot;-optimisation"><a class="permalink" href="perl5140delta.html#%22Safe-signals%22-optimisation">#</a><a id="Safe-signals-optimisation"></a>&quot;Safe signals&quot; optimisation</h2>

<p>Signal dispatch has been moved from the runloop into control ops. This should give a few percent speed increase, and eliminates nearly all the speed penalty caused by the introduction of &quot;safe signals&quot; in 5.8.0. Signals should still be dispatched within the same statement as they were previously. If this does <i>not</i> happen, or if you find it possible to create uninterruptible loops, this is a bug, and reports are encouraged of how to recreate such issues.</p>

<h2 id="Optimisation-of-shift()-and-pop()-calls-without-arguments"><a class="permalink" href="perl5140delta.html#Optimisation-of-shift()-and-pop()-calls-without-arguments">#</a><a id="Optimisation"></a><a id="Optimisation-of-shift-and-pop-calls-without-arguments"></a>Optimisation of shift() and pop() calls without arguments</h2>

<p>Two fewer OPs are used for shift() and pop() calls with no argument (with implicit <code>@_</code>). This change makes shift() 5% faster than <code>shift @_</code> on non-threaded perls, and 25% faster on threaded ones.</p>

<h2 id="Optimisation-of-regexp-engine-string-comparison-work"><a class="permalink" href="perl5140delta.html#Optimisation-of-regexp-engine-string-comparison-work">#</a><a id="Optimisation1"></a>Optimisation of regexp engine string comparison work</h2>

<p>The <code>foldEQ_utf8</code> API function for case-insensitive comparison of strings (which is used heavily by the regexp engine) was substantially refactored and optimised -- and its documentation much improved as a free bonus.</p>

<h2 id="Regular-expression-compilation-speed-up"><a class="permalink" href="perl5140delta.html#Regular-expression-compilation-speed-up">#</a><a id="Regular4"></a>Regular expression compilation speed-up</h2>

<p>Compiling regular expressions has been made faster when upgrading the regex to utf8 is necessary but this isn&#39;t known when the compilation begins.</p>

<h2 id="String-appending-is-100-times-faster"><a class="permalink" href="perl5140delta.html#String-appending-is-100-times-faster">#</a><a id="String"></a>String appending is 100 times faster</h2>

<p>When doing a lot of string appending, perls built to use the system&#39;s <code>malloc</code> could end up allocating a lot more memory than needed in a inefficient way.</p>

<p><code>sv_grow</code>, the function used to allocate more memory if necessary when appending to a string, has been taught to round up the memory it requests to a certain geometric progression, making it much faster on certain platforms and configurations. On Win32, it&#39;s now about 100 times faster.</p>

<h2 id="Eliminate-PL_*-accessor-functions-under-ithreads"><a class="permalink" href="perl5140delta.html#Eliminate-PL_*-accessor-functions-under-ithreads">#</a><a id="Eliminate"></a><a id="Eliminate-PL_-accessor-functions-under-ithreads"></a>Eliminate <code>PL_*</code> accessor functions under ithreads</h2>

<p>When <code>MULTIPLICITY</code> was first developed, and interpreter state moved into an interpreter struct, thread- and interpreter-local <code>PL_*</code> variables were defined as macros that called accessor functions (returning the address of the value) outside the Perl core. The intent was to allow members within the interpreter struct to change size without breaking binary compatibility, so that bug fixes could be merged to a maintenance branch that necessitated such a size change. This mechanism was redundant and penalised well-behaved code. It has been removed.</p>

<h2 id="Freeing-weak-references"><a class="permalink" href="perl5140delta.html#Freeing-weak-references">#</a><a id="Freeing"></a>Freeing weak references</h2>

<p>When there are many weak references to an object, freeing that object can under some circumstances take O(<i>N*N</i>) time to free, where <i>N</i> is the number of references. The circumstances in which this can happen have been reduced [perl #75254]</p>

<h2 id="Lexical-array-and-hash-assignments"><a class="permalink" href="perl5140delta.html#Lexical-array-and-hash-assignments">#</a><a id="Lexical"></a>Lexical array and hash assignments</h2>

<p>An earlier optimisation to speed up <code>my @array = ...</code> and <code>my %hash = ...</code> assignments caused a bug and was disabled in Perl 5.12.0.</p>

<p>Now we have found another way to speed up these assignments [perl #82110].</p>

<h2 id="@_-uses-less-memory"><a class="permalink" href="perl5140delta.html#@_-uses-less-memory">#</a><a id="uses-less-memory"></a><code>@_</code> uses less memory</h2>

<p>Previously, <code>@_</code> was allocated for every subroutine at compile time with enough space for four entries. Now this allocation is done on demand when the subroutine is called [perl #72416].</p>

<h2 id="Size-optimisations-to-SV-and-HV-structures"><a class="permalink" href="perl5140delta.html#Size-optimisations-to-SV-and-HV-structures">#</a><a id="Size"></a>Size optimisations to SV and HV structures</h2>

<p><code>xhv_fill</code> has been eliminated from <code>struct xpvhv</code>, saving 1 IV per hash and on some systems will cause <code>struct xpvhv</code> to become cache-aligned. To avoid this memory saving causing a slowdown elsewhere, boolean use of <code>HvFILL</code> now calls <code>HvTOTALKEYS</code> instead (which is equivalent), so while the fill data when actually required are now calculated on demand, cases when this needs to be done should be rare.</p>

<p>The order of structure elements in SV bodies has changed. Effectively, the NV slot has swapped location with STASH and MAGIC. As all access to SV members is via macros, this should be completely transparent. This change allows the space saving for PVHVs documented above, and may reduce the memory allocation needed for PVIVs on some architectures.</p>

<p><code>XPV</code>, <code>XPVIV</code>, and <code>XPVNV</code> now allocate only the parts of the <code>SV</code> body they actually use, saving some space.</p>

<p>Scalars containing regular expressions now allocate only the part of the <code>SV</code> body they actually use, saving some space.</p>

<h2 id="Memory-consumption-improvements-to-Exporter"><a class="permalink" href="perl5140delta.html#Memory-consumption-improvements-to-Exporter">#</a><a id="Memory"></a>Memory consumption improvements to Exporter</h2>

<p>The <code>@EXPORT_FAIL</code> AV is no longer created unless needed, hence neither is the typeglob backing it. This saves about 200 bytes for every package that uses Exporter but doesn&#39;t use this functionality.</p>

<h2 id="Memory-savings-for-weak-references"><a class="permalink" href="perl5140delta.html#Memory-savings-for-weak-references">#</a><a id="Memory1"></a>Memory savings for weak references</h2>

<p>For weak references, the common case of just a single weak reference per referent has been optimised to reduce the storage required. In this case it saves the equivalent of one small Perl array per referent.</p>

<h2 id="%+-and-%-use-less-memory"><a class="permalink" href="perl5140delta.html#%25+-and-%25-use-less-memory">#</a><a id="and---use-less-memory"></a><code>%+</code> and <code>%-</code> use less memory</h2>

<p>The bulk of the <code>Tie::Hash::NamedCapture</code> module used to be in the Perl core. It has now been moved to an XS module to reduce overhead for programs that do not use <code>%+</code> or <code>%-</code>.</p>

<h2 id="Multiple-small-improvements-to-threads"><a class="permalink" href="perl5140delta.html#Multiple-small-improvements-to-threads">#</a><a id="Multiple"></a>Multiple small improvements to threads</h2>

<p>The internal structures of threading now make fewer API calls and fewer allocations, resulting in noticeably smaller object code. Additionally, many thread context checks have been deferred so they&#39;re done only as needed (although this is only possible for non-debugging builds).</p>

<h2 id="Adjacent-pairs-of-nextstate-opcodes-are-now-optimized-away"><a class="permalink" href="perl5140delta.html#Adjacent-pairs-of-nextstate-opcodes-are-now-optimized-away">#</a><a id="Adjacent"></a>Adjacent pairs of nextstate opcodes are now optimized away</h2>

<p>Previously, in code such as</p>

<pre><code>use constant DEBUG =&gt; 0;

sub GAK {
    warn if DEBUG;
    print &quot;stuff\n&quot;;
}</code></pre>

<p>the ops for <code>warn if DEBUG</code> would be folded to a <code>null</code> op (<code>ex-const</code>), but the <code>nextstate</code> op would remain, resulting in a runtime op dispatch of <code>nextstate</code>, <code>nextstate</code>, etc.</p>

<p>The execution of a sequence of <code>nextstate</code> ops is indistinguishable from just the last <code>nextstate</code> op so the peephole optimizer now eliminates the first of a pair of <code>nextstate</code> ops except when the first carries a label, since labels must not be eliminated by the optimizer, and label usage isn&#39;t conclusively known at compile time.</p>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl5140delta.html#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1>

<h2 id="New-Modules-and-Pragmata"><a class="permalink" href="perl5140delta.html#New-Modules-and-Pragmata">#</a><a id="New3"></a>New Modules and Pragmata</h2>

<ul>

<li><p><a href="./CPAN::Meta::YAML.html">CPAN::Meta::YAML</a> 0.003 has been added as a dual-life module. It supports a subset of YAML sufficient for reading and writing <i>META.yml</i> and <i>MYMETA.yml</i> files included with CPAN distributions or generated by the module installation toolchain. It should not be used for any other general YAML parsing or generation task.</p>

</li>
<li><p><a href="./CPAN::Meta.html">CPAN::Meta</a> version 2.110440 has been added as a dual-life module. It provides a standard library to read, interpret and write CPAN distribution metadata files (like <i>META.json</i> and <i>META.yml</i>) that describe a distribution, its contents, and the requirements for building it and installing it. The latest CPAN distribution metadata specification is included as <a href="./CPAN::Meta::Spec.html">CPAN::Meta::Spec</a> and notes on changes in the specification over time are given in <a href="./CPAN::Meta::History.html">CPAN::Meta::History</a>.</p>

</li>
<li><p><a href="./HTTP::Tiny.html">HTTP::Tiny</a> 0.012 has been added as a dual-life module. It is a very small, simple HTTP/1.1 client designed for simple GET requests and file mirroring. It has been added so that <i>CPAN.pm</i> and <a href="CPANPLUS.html">CPANPLUS</a> can &quot;bootstrap&quot; HTTP access to CPAN using pure Perl without relying on external binaries like <a href="http://man.he.net/man1/curl">curl(1)</a> or <a href="http://man.he.net/man1/wget">wget(1)</a>.</p>

</li>
<li><p><a href="./JSON::PP.html">JSON::PP</a> 2.27105 has been added as a dual-life module to allow CPAN clients to read <i>META.json</i> files in CPAN distributions.</p>

</li>
<li><p><a href="./Module::Metadata.html">Module::Metadata</a> 1.000004 has been added as a dual-life module. It gathers package and POD information from Perl module files. It is a standalone module based on <a href="./Module::Build::ModuleInfo.html">Module::Build::ModuleInfo</a> for use by other module installation toolchain components. <a href="./Module::Build::ModuleInfo.html">Module::Build::ModuleInfo</a> has been deprecated in favor of this module instead.</p>

</li>
<li><p><a href="./Perl::OSType.html">Perl::OSType</a> 1.002 has been added as a dual-life module. It maps Perl operating system names (like &quot;dragonfly&quot; or &quot;MSWin32&quot;) to more generic types with standardized names (like &quot;Unix&quot; or &quot;Windows&quot;). It has been refactored out of <a href="./Module::Build.html">Module::Build</a> and <a href="./ExtUtils::CBuilder.html">ExtUtils::CBuilder</a> and consolidates such mappings into a single location for easier maintenance.</p>

</li>
<li><p>The following modules were added by the <a href="./Unicode::Collate.html">Unicode::Collate</a> upgrade. See below for details.</p>

<p><a href="./Unicode::Collate::CJK::Big5.html">Unicode::Collate::CJK::Big5</a></p>

<p><a href="./Unicode::Collate::CJK::GB2312.html">Unicode::Collate::CJK::GB2312</a></p>

<p><a href="./Unicode::Collate::CJK::JISX0208.html">Unicode::Collate::CJK::JISX0208</a></p>

<p><a href="./Unicode::Collate::CJK::Korean.html">Unicode::Collate::CJK::Korean</a></p>

<p><a href="./Unicode::Collate::CJK::Pinyin.html">Unicode::Collate::CJK::Pinyin</a></p>

<p><a href="./Unicode::Collate::CJK::Stroke.html">Unicode::Collate::CJK::Stroke</a></p>

</li>
<li><p><a href="./Version::Requirements.html">Version::Requirements</a> version 0.101020 has been added as a dual-life module. It provides a standard library to model and manipulates module prerequisites and version constraints defined in <a href="./CPAN::Meta::Spec.html">CPAN::Meta::Spec</a>.</p>

</li>
</ul>

<h2 id="Updated-Modules-and-Pragma"><a class="permalink" href="perl5140delta.html#Updated-Modules-and-Pragma">#</a><a id="Updated"></a>Updated Modules and Pragma</h2>

<ul>

<li><p><a href="attributes.html">attributes</a> has been upgraded from version 0.12 to 0.14.</p>

</li>
<li><p><a href="./Archive::Extract.html">Archive::Extract</a> has been upgraded from version 0.38 to 0.48.</p>

<p>Updates since 0.38 include: a safe print method that guards <a href="./Archive::Extract.html">Archive::Extract</a> from changes to <code>$\</code>; a fix to the tests when run in core Perl; support for TZ files; a modification for the lzma logic to favour <a href="https://perldoc.perl.org/5.35.0/IO::Uncompress::Unlzma">IO::Uncompress::Unlzma</a>; and a fix for an issue with NetBSD-current and its new <a href="http://man.he.net/man1/unzip">unzip(1)</a> executable.</p>

</li>
<li><p><a href="./Archive::Tar.html">Archive::Tar</a> has been upgraded from version 1.54 to 1.76.</p>

<p>Important changes since 1.54 include the following:</p>

<ul>

<li><p>Compatibility with busybox implementations of <a href="http://man.he.net/man1/tar">tar(1)</a>.</p>

</li>
<li><p>A fix so that write() and create_archive() close only filehandles they themselves opened.</p>

</li>
<li><p>A bug was fixed regarding the exit code of extract_archive.</p>

</li>
<li><p>The <a href="http://man.he.net/man1/ptar">ptar(1)</a> utility has a new option to allow safe creation of tarballs without world-writable files on Windows, allowing those archives to be uploaded to CPAN.</p>

</li>
<li><p>A new <a href="http://man.he.net/man1/ptargrep">ptargrep(1)</a> utility for using regular expressions against the contents of files in a tar archive.</p>

</li>
<li><p><a href="https://perldoc.perl.org/5.35.0/pax">pax</a> extended headers are now skipped.</p>

</li>
</ul>

</li>
<li><p><a href="./Attribute::Handlers.html">Attribute::Handlers</a> has been upgraded from version 0.87 to 0.89.</p>

</li>
<li><p><a href="autodie.html">autodie</a> has been upgraded from version 2.06_01 to 2.1001.</p>

</li>
<li><p><a href="AutoLoader.html">AutoLoader</a> has been upgraded from version 5.70 to 5.71.</p>

</li>
<li><p>The <a href="B.html">B</a> module has been upgraded from version 1.23 to 1.29.</p>

<p>It no longer crashes when taking apart a <code>y///</code> containing characters outside the octet range or compiled in a <code>use utf8</code> scope.</p>

<p>The size of the shared object has been reduced by about 40%, with no reduction in functionality.</p>

</li>
<li><p><a href="./B::Concise.html">B::Concise</a> has been upgraded from version 0.78 to 0.83.</p>

<p><a href="./B::Concise.html">B::Concise</a> marks rv2sv(), rv2av(), and rv2hv() ops with the new <code>OPpDEREF</code> flag as &quot;DREFed&quot;.</p>

<p>It no longer produces mangled output with the <b>-tree</b> option [perl #80632].</p>

</li>
<li><p><a href="./B::Debug.html">B::Debug</a> has been upgraded from version 1.12 to 1.16.</p>

</li>
<li><p><a href="./B::Deparse.html">B::Deparse</a> has been upgraded from version 0.96 to 1.03.</p>

<p>The deparsing of a <code>nextstate</code> op has changed when it has both a change of package relative to the previous nextstate, or a change of <code>%^H</code> or other state and a label. The label was previously emitted first, but is now emitted last (5.12.1).</p>

<p>The <code>no 5.13.2</code> or similar form is now correctly handled by <a href="./B::Deparse.html">B::Deparse</a> (5.12.3).</p>

<p><a href="./B::Deparse.html">B::Deparse</a> now properly handles the code that applies a conditional pattern match against implicit <code>$_</code> as it was fixed in [perl #20444].</p>

<p>Deparsing of <code>our</code> followed by a variable with funny characters (as permitted under the <code>use utf8</code> pragma) has also been fixed [perl #33752].</p>

</li>
<li><p><a href="./B::Lint.html">B::Lint</a> has been upgraded from version 1.11_01 to 1.13.</p>

</li>
<li><p><a href="base.html">base</a> has been upgraded from version 2.15 to 2.16.</p>

</li>
<li><p><a href="Benchmark.html">Benchmark</a> has been upgraded from version 1.11 to 1.12.</p>

</li>
<li><p><a href="bignum.html">bignum</a> has been upgraded from version 0.23 to 0.27.</p>

</li>
<li><p><a href="Carp.html">Carp</a> has been upgraded from version 1.15 to 1.20.</p>

<p><a href="Carp.html">Carp</a> now detects incomplete <a href="perlfunc.html#caller-EXPR">caller()</a> overrides and avoids using bogus <code>@DB::args</code>. To provide backtraces, Carp relies on particular behaviour of the caller() builtin. <a href="Carp.html">Carp</a> now detects if other code has overridden this with an incomplete implementation, and modifies its backtrace accordingly. Previously incomplete overrides would cause incorrect values in backtraces (best case), or obscure fatal errors (worst case).</p>

<p>This fixes certain cases of &quot;Bizarre copy of ARRAY&quot; caused by modules overriding caller() incorrectly (5.12.2).</p>

<p>It now also avoids using regular expressions that cause Perl to load its Unicode tables, so as to avoid the &quot;BEGIN not safe after errors&quot; error that ensue if there has been a syntax error [perl #82854].</p>

</li>
<li><p><a href="CGI.html">CGI</a> has been upgraded from version 3.48 to 3.52.</p>

<p>This provides the following security fixes: the MIME boundary in multipart_init() is now random and the handling of newlines embedded in header values has been improved.</p>

</li>
<li><p><a href="./Compress::Raw::Bzip2.html">Compress::Raw::Bzip2</a> has been upgraded from version 2.024 to 2.033.</p>

<p>It has been updated to use <a href="http://man.he.net/man1/bzip2">bzip2(1)</a> 1.0.6.</p>

</li>
<li><p><a href="./Compress::Raw::Zlib.html">Compress::Raw::Zlib</a> has been upgraded from version 2.024 to 2.033.</p>

</li>
<li><p><a href="constant.html">constant</a> has been upgraded from version 1.20 to 1.21.</p>

<p>Unicode constants work once more. They have been broken since Perl 5.10.0 [CPAN RT #67525].</p>

</li>
<li><p><a href="CPAN.html">CPAN</a> has been upgraded from version 1.94_56 to 1.9600.</p>

<p>Major highlights:</p>

<ul>

<li><p>much less configuration dialog hassle</p>

</li>
<li><p>support for <i>META/MYMETA.json</i></p>

</li>
<li><p>support for <a href="./local::lib.html">local::lib</a></p>

</li>
<li><p>support for <a href="./HTTP::Tiny.html">HTTP::Tiny</a> to reduce the dependency on FTP sites</p>

</li>
<li><p>automatic mirror selection</p>

</li>
<li><p>iron out all known bugs in configure_requires</p>

</li>
<li><p>support for distributions compressed with <a href="http://man.he.net/man1/bzip2">bzip2(1)</a></p>

</li>
<li><p>allow <i>Foo/Bar.pm</i> on the command line to mean <code>Foo::Bar</code></p>

</li>
</ul>

</li>
<li><p><a href="CPANPLUS.html">CPANPLUS</a> has been upgraded from version 0.90 to 0.9103.</p>

<p>A change to <i>cpanp-run-perl</i> resolves <a href="http://rt.cpan.org/Public/Bug/Display.html?id=55964">RT #55964</a> and <a href="http://rt.cpan.org/Public/Bug/Display.html?id=57106">RT #57106</a>, both of which related to failures to install distributions that use <code>Module::Install::DSL</code> (5.12.2).</p>

<p>A dependency on <a href="Config.html">Config</a> was not recognised as a core module dependency. This has been fixed.</p>

<p><a href="CPANPLUS.html">CPANPLUS</a> now includes support for <i>META.json</i> and <i>MYMETA.json</i>.</p>

</li>
<li><p><a href="./CPANPLUS::Dist::Build.html">CPANPLUS::Dist::Build</a> has been upgraded from version 0.46 to 0.54.</p>

</li>
<li><p><a href="./Data::Dumper.html">Data::Dumper</a> has been upgraded from version 2.125 to 2.130_02.</p>

<p>The indentation used to be off when <code>$Data::Dumper::Terse</code> was set. This has been fixed [perl #73604].</p>

<p>This upgrade also fixes a crash when using custom sort functions that might cause the stack to change [perl #74170].</p>

<p><a href="https://perldoc.perl.org/5.35.0/Dumpxs">Dumpxs</a> no longer crashes with globs returned by <code>*$io_ref</code> [perl #72332].</p>

</li>
<li><p><a href="DB_File.html">DB_File</a> has been upgraded from version 1.820 to 1.821.</p>

</li>
<li><p><a href="DBM_Filter.html">DBM_Filter</a> has been upgraded from version 0.03 to 0.04.</p>

</li>
<li><p><a href="./Devel::DProf.html">Devel::DProf</a> has been upgraded from version 20080331.00 to 20110228.00.</p>

<p>Merely loading <a href="./Devel::DProf.html">Devel::DProf</a> now no longer triggers profiling to start. Both <code>use Devel::DProf</code> and <code>perl -d:DProf ...</code> behave as before and start the profiler.</p>

<p><b>NOTE</b>: <a href="./Devel::DProf.html">Devel::DProf</a> is deprecated and will be removed from a future version of Perl. We strongly recommend that you install and use <a href="./Devel::NYTProf.html">Devel::NYTProf</a> instead, as it offers significantly improved profiling and reporting.</p>

</li>
<li><p><a href="./Devel::Peek.html">Devel::Peek</a> has been upgraded from version 1.04 to 1.07.</p>

</li>
<li><p><a href="./Devel::SelfStubber.html">Devel::SelfStubber</a> has been upgraded from version 1.03 to 1.05.</p>

</li>
<li><p><a href="diagnostics.html">diagnostics</a> has been upgraded from version 1.19 to 1.22.</p>

<p>It now renders pod links slightly better, and has been taught to find descriptions for messages that share their descriptions with other messages.</p>

</li>
<li><p><a href="./Digest::MD5.html">Digest::MD5</a> has been upgraded from version 2.39 to 2.51.</p>

<p>It is now safe to use this module in combination with threads.</p>

</li>
<li><p><a href="./Digest::SHA.html">Digest::SHA</a> has been upgraded from version 5.47 to 5.61.</p>

<p><code>shasum</code> now more closely mimics <a href="http://man.he.net/man1/sha1sum">sha1sum(1)</a>/<a href="http://man.he.net/man1/md5sum">md5sum(1)</a>.</p>

<p><code>addfile</code> accepts all POSIX filenames.</p>

<p>New SHA-512/224 and SHA-512/256 transforms (ref. NIST Draft FIPS 180-4 [February 2011])</p>

</li>
<li><p><a href="DirHandle.html">DirHandle</a> has been upgraded from version 1.03 to 1.04.</p>

</li>
<li><p><a href="Dumpvalue.html">Dumpvalue</a> has been upgraded from version 1.13 to 1.16.</p>

</li>
<li><p><a href="DynaLoader.html">DynaLoader</a> has been upgraded from version 1.10 to 1.13.</p>

<p>It fixes a buffer overflow when passed a very long file name.</p>

<p>It no longer inherits from <a href="AutoLoader.html">AutoLoader</a>; hence it no longer produces weird error messages for unsuccessful method calls on classes that inherit from <a href="DynaLoader.html">DynaLoader</a> [perl #84358].</p>

</li>
<li><p><a href="Encode.html">Encode</a> has been upgraded from version 2.39 to 2.42.</p>

<p>Now, all 66 Unicode non-characters are treated the same way U+FFFF has always been treated: in cases when it was disallowed, all 66 are disallowed, and in cases where it warned, all 66 warn.</p>

</li>
<li><p><a href="Env.html">Env</a> has been upgraded from version 1.01 to 1.02.</p>

</li>
<li><p><a href="Errno.html">Errno</a> has been upgraded from version 1.11 to 1.13.</p>

<p>The implementation of <a href="Errno.html">Errno</a> has been refactored to use about 55% less memory.</p>

<p>On some platforms with unusual header files, like Win32 <a href="http://man.he.net/man1/gcc">gcc(1)</a> using <code>mingw64</code> headers, some constants that weren&#39;t actually error numbers have been exposed by <a href="Errno.html">Errno</a>. This has been fixed [perl #77416].</p>

</li>
<li><p><a href="Exporter.html">Exporter</a> has been upgraded from version 5.64_01 to 5.64_03.</p>

<p>Exporter no longer overrides <code>$SIG{__WARN__}</code> [perl #74472]</p>

</li>
<li><p><a href="./ExtUtils::CBuilder.html">ExtUtils::CBuilder</a> has been upgraded from version 0.27 to 0.280203.</p>

</li>
<li><p><a href="./ExtUtils::Command.html">ExtUtils::Command</a> has been upgraded from version 1.16 to 1.17.</p>

</li>
<li><p><a href="./ExtUtils::Constant.html">ExtUtils::Constant</a> has been upgraded from 0.22 to 0.23.</p>

<p>The <a href="https://perldoc.perl.org/5.35.0/AUTOLOAD">AUTOLOAD</a> helper code generated by <code>ExtUtils::Constant::ProxySubs</code> can now croak() for missing constants, or generate a complete <code>AUTOLOAD</code> subroutine in XS, allowing simplification of many modules that use it (<a href="Fcntl.html">Fcntl</a>, <a href="./File::Glob.html">File::Glob</a>, <a href="GDBM_File.html">GDBM_File</a>, <a href="./I18N::Langinfo.html">I18N::Langinfo</a>, <a href="POSIX.html">POSIX</a>, <a href="Socket.html">Socket</a>).</p>

<p><a href="./ExtUtils::Constant::ProxySubs.html">ExtUtils::Constant::ProxySubs</a> can now optionally push the names of all constants onto the package&#39;s <code>@EXPORT_OK</code>.</p>

</li>
<li><p><a href="./ExtUtils::Install.html">ExtUtils::Install</a> has been upgraded from version 1.55 to 1.56.</p>

</li>
<li><p><a href="./ExtUtils::MakeMaker.html">ExtUtils::MakeMaker</a> has been upgraded from version 6.56 to 6.57_05.</p>

</li>
<li><p><a href="./ExtUtils::Manifest.html">ExtUtils::Manifest</a> has been upgraded from version 1.57 to 1.58.</p>

</li>
<li><p><a href="./ExtUtils::ParseXS.html">ExtUtils::ParseXS</a> has been upgraded from version 2.21 to 2.2210.</p>

</li>
<li><p><a href="Fcntl.html">Fcntl</a> has been upgraded from version 1.06 to 1.11.</p>

</li>
<li><p><a href="./File::Basename.html">File::Basename</a> has been upgraded from version 2.78 to 2.82.</p>

</li>
<li><p><a href="./File::CheckTree.html">File::CheckTree</a> has been upgraded from version 4.4 to 4.41.</p>

</li>
<li><p><a href="./File::Copy.html">File::Copy</a> has been upgraded from version 2.17 to 2.21.</p>

</li>
<li><p><a href="./File::DosGlob.html">File::DosGlob</a> has been upgraded from version 1.01 to 1.04.</p>

<p>It allows patterns containing literal parentheses: they no longer need to be escaped. On Windows, it no longer adds an extra <i>./</i> to file names returned when the pattern is a relative glob with a drive specification, like <i>C:*.pl</i> [perl #71712].</p>

</li>
<li><p><a href="./File::Fetch.html">File::Fetch</a> has been upgraded from version 0.24 to 0.32.</p>

<p><a href="./HTTP::Lite.html">HTTP::Lite</a> is now supported for the &quot;http&quot; scheme.</p>

<p>The <a href="http://man.he.net/man1/fetch">fetch(1)</a> utility is supported on FreeBSD, NetBSD, and Dragonfly BSD for the <code>http</code> and <code>ftp</code> schemes.</p>

</li>
<li><p><a href="./File::Find.html">File::Find</a> has been upgraded from version 1.15 to 1.19.</p>

<p>It improves handling of backslashes on Windows, so that paths like <i>C:\dir\/file</i> are no longer generated [perl #71710].</p>

</li>
<li><p><a href="./File::Glob.html">File::Glob</a> has been upgraded from version 1.07 to 1.12.</p>

</li>
<li><p><a href="./File::Spec.html">File::Spec</a> has been upgraded from version 3.31 to 3.33.</p>

<p>Several portability fixes were made in <a href="./File::Spec::VMS.html">File::Spec::VMS</a>: a colon is now recognized as a delimiter in native filespecs; caret-escaped delimiters are recognized for better handling of extended filespecs; catpath() returns an empty directory rather than the current directory if the input directory name is empty; and abs2rel() properly handles Unix-style input (5.12.2).</p>

</li>
<li><p><a href="./File::stat.html">File::stat</a> has been upgraded from 1.02 to 1.05.</p>

<p>The <code>-x</code> and <code>-X</code> file test operators now work correctly when run by the superuser.</p>

</li>
<li><p><a href="./Filter::Simple.html">Filter::Simple</a> has been upgraded from version 0.84 to 0.86.</p>

</li>
<li><p><a href="GDBM_File.html">GDBM_File</a> has been upgraded from 1.10 to 1.14.</p>

<p>This fixes a memory leak when DBM filters are used.</p>

</li>
<li><p><a href="./Hash::Util.html">Hash::Util</a> has been upgraded from 0.07 to 0.11.</p>

<p><a href="./Hash::Util.html">Hash::Util</a> no longer emits spurious &quot;uninitialized&quot; warnings when recursively locking hashes that have undefined values [perl #74280].</p>

</li>
<li><p><a href="./Hash::Util::FieldHash.html">Hash::Util::FieldHash</a> has been upgraded from version 1.04 to 1.09.</p>

</li>
<li><p><a href="./I18N::Collate.html">I18N::Collate</a> has been upgraded from version 1.01 to 1.02.</p>

</li>
<li><p><a href="./I18N::Langinfo.html">I18N::Langinfo</a> has been upgraded from version 0.03 to 0.08.</p>

<p>langinfo() now defaults to using <code>$_</code> if there is no argument given, just as the documentation has always claimed.</p>

</li>
<li><p><a href="./I18N::LangTags.html">I18N::LangTags</a> has been upgraded from version 0.35 to 0.35_01.</p>

</li>
<li><p><a href="if.html">if</a> has been upgraded from version 0.05 to 0.0601.</p>

</li>
<li><p><a href="IO.html">IO</a> has been upgraded from version 1.25_02 to 1.25_04.</p>

<p>This version of <a href="IO.html">IO</a> includes a new <a href="./IO::Select.html">IO::Select</a>, which now allows <a href="./IO::Handle.html">IO::Handle</a> objects (and objects in derived classes) to be removed from an <a href="./IO::Select.html">IO::Select</a> set even if the underlying file descriptor is closed or invalid.</p>

</li>
<li><p><a href="./IPC::Cmd.html">IPC::Cmd</a> has been upgraded from version 0.54 to 0.70.</p>

<p>Resolves an issue with splitting Win32 command lines. An argument consisting of the single character &quot;0&quot; used to be omitted (CPAN RT #62961).</p>

</li>
<li><p><a href="./IPC::Open3.html">IPC::Open3</a> has been upgraded from 1.05 to 1.09.</p>

<p>open3() now produces an error if the <code>exec</code> call fails, allowing this condition to be distinguished from a child process that exited with a non-zero status [perl #72016].</p>

<p>The internal xclose() routine now knows how to handle file descriptors as documented, so duplicating <code>STDIN</code> in a child process using its file descriptor now works [perl #76474].</p>

</li>
<li><p><a href="./IPC::SysV.html">IPC::SysV</a> has been upgraded from version 2.01 to 2.03.</p>

</li>
<li><p><a href="lib.html">lib</a> has been upgraded from version 0.62 to 0.63.</p>

</li>
<li><p><a href="./Locale::Maketext.html">Locale::Maketext</a> has been upgraded from version 1.14 to 1.19.</p>

<p><a href="./Locale::Maketext.html">Locale::Maketext</a> now supports external caches.</p>

<p>This upgrade also fixes an infinite loop in <code>Locale::Maketext::Guts::_compile()</code> when working with tainted values (CPAN RT #40727).</p>

<p><code>-&gt;maketext</code> calls now back up and restore <code>$@</code> so error messages are not suppressed (CPAN RT #34182).</p>

</li>
<li><p><a href="./Log::Message.html">Log::Message</a> has been upgraded from version 0.02 to 0.04.</p>

</li>
<li><p><a href="./Log::Message::Simple.html">Log::Message::Simple</a> has been upgraded from version 0.06 to 0.08.</p>

</li>
<li><p><a href="./Math::BigInt.html">Math::BigInt</a> has been upgraded from version 1.89_01 to 1.994.</p>

<p>This fixes, among other things, incorrect results when computing binomial coefficients [perl #77640].</p>

<p>It also prevents <code>sqrt($int)</code> from crashing under <code>use bigrat</code>. [perl #73534].</p>

</li>
<li><p><a href="./Math::BigInt::FastCalc.html">Math::BigInt::FastCalc</a> has been upgraded from version 0.19 to 0.28.</p>

</li>
<li><p><a href="./Math::BigRat.html">Math::BigRat</a> has been upgraded from version 0.24 to 0.26_02.</p>

</li>
<li><p><a href="Memoize.html">Memoize</a> has been upgraded from version 1.01_03 to 1.02.</p>

</li>
<li><p><a href="./MIME::Base64.html">MIME::Base64</a> has been upgraded from 3.08 to 3.13.</p>

<p>Includes new functions to calculate the length of encoded and decoded base64 strings.</p>

<p>Now provides encode_base64url() and decode_base64url() functions to process the base64 scheme for &quot;URL applications&quot;.</p>

</li>
<li><p><a href="./Module::Build.html">Module::Build</a> has been upgraded from version 0.3603 to 0.3800.</p>

<p>A notable change is the deprecation of several modules. <a href="./Module::Build::Version.html">Module::Build::Version</a> has been deprecated and <a href="./Module::Build.html">Module::Build</a> now relies on the <a href="version.html">version</a> pragma directly. <a href="./Module::Build::ModuleInfo.html">Module::Build::ModuleInfo</a> has been deprecated in favor of a standalone copy called <a href="./Module::Metadata.html">Module::Metadata</a>. <a href="./Module::Build::YAML.html">Module::Build::YAML</a> has been deprecated in favor of <a href="./CPAN::Meta::YAML.html">CPAN::Meta::YAML</a>.</p>

<p><a href="./Module::Build.html">Module::Build</a> now also generates <i>META.json</i> and <i>MYMETA.json</i> files in accordance with version 2 of the CPAN distribution metadata specification, <a href="./CPAN::Meta::Spec.html">CPAN::Meta::Spec</a>. The older format <i>META.yml</i> and <i>MYMETA.yml</i> files are still generated.</p>

</li>
<li><p><a href="./Module::CoreList.html">Module::CoreList</a> has been upgraded from version 2.29 to 2.47.</p>

<p>Besides listing the updated core modules of this release, it also stops listing the <code>Filespec</code> module. That module never existed in core. The scripts generating <a href="./Module::CoreList.html">Module::CoreList</a> confused it with <a href="./VMS::Filespec.html">VMS::Filespec</a>, which actually is a core module as of Perl 5.8.7.</p>

</li>
<li><p><a href="./Module::Load.html">Module::Load</a> has been upgraded from version 0.16 to 0.18.</p>

</li>
<li><p><a href="./Module::Load::Conditional.html">Module::Load::Conditional</a> has been upgraded from version 0.34 to 0.44.</p>

</li>
<li><p>The <a href="mro.html">mro</a> pragma has been upgraded from version 1.02 to 1.07.</p>

</li>
<li><p><a href="NDBM_File.html">NDBM_File</a> has been upgraded from version 1.08 to 1.12.</p>

<p>This fixes a memory leak when DBM filters are used.</p>

</li>
<li><p><a href="./Net::Ping.html">Net::Ping</a> has been upgraded from version 2.36 to 2.38.</p>

</li>
<li><p><a href="NEXT.html">NEXT</a> has been upgraded from version 0.64 to 0.65.</p>

</li>
<li><p><a href="./Object::Accessor.html">Object::Accessor</a> has been upgraded from version 0.36 to 0.38.</p>

</li>
<li><p><a href="ODBM_File.html">ODBM_File</a> has been upgraded from version 1.07 to 1.10.</p>

<p>This fixes a memory leak when DBM filters are used.</p>

</li>
<li><p><a href="Opcode.html">Opcode</a> has been upgraded from version 1.15 to 1.18.</p>

</li>
<li><p>The <a href="overload.html">overload</a> pragma has been upgraded from 1.10 to 1.13.</p>

<p><code>overload::Method</code> can now handle subroutines that are themselves blessed into overloaded classes [perl #71998].</p>

<p>The documentation has greatly improved. See <a href="perl5140delta.html#Documentation">&quot;Documentation&quot;</a> below.</p>

</li>
<li><p><a href="./Params::Check.html">Params::Check</a> has been upgraded from version 0.26 to 0.28.</p>

</li>
<li><p>The <a href="parent.html">parent</a> pragma has been upgraded from version 0.223 to 0.225.</p>

</li>
<li><p><a href="./Parse::CPAN::Meta.html">Parse::CPAN::Meta</a> has been upgraded from version 1.40 to 1.4401.</p>

<p>The latest Parse::CPAN::Meta can now read YAML and JSON files using <a href="./CPAN::Meta::YAML.html">CPAN::Meta::YAML</a> and <a href="./JSON::PP.html">JSON::PP</a>, which are now part of the Perl core.</p>

</li>
<li><p><a href="./PerlIO::encoding.html">PerlIO::encoding</a> has been upgraded from version 0.12 to 0.14.</p>

</li>
<li><p><a href="./PerlIO::scalar.html">PerlIO::scalar</a> has been upgraded from 0.07 to 0.11.</p>

<p>A read() after a seek() beyond the end of the string no longer thinks it has data to read [perl #78716].</p>

</li>
<li><p><a href="./PerlIO::via.html">PerlIO::via</a> has been upgraded from version 0.09 to 0.11.</p>

</li>
<li><p><a href="./Pod::Html.html">Pod::Html</a> has been upgraded from version 1.09 to 1.11.</p>

</li>
<li><p><a href="./Pod::LaTeX.html">Pod::LaTeX</a> has been upgraded from version 0.58 to 0.59.</p>

</li>
<li><p><a href="./Pod::Perldoc.html">Pod::Perldoc</a> has been upgraded from version 3.15_02 to 3.15_03.</p>

</li>
<li><p><a href="./Pod::Simple.html">Pod::Simple</a> has been upgraded from version 3.13 to 3.16.</p>

</li>
<li><p><a href="POSIX.html">POSIX</a> has been upgraded from 1.19 to 1.24.</p>

<p>It now includes constants for POSIX signal constants.</p>

</li>
<li><p>The <a href="re.html">re</a> pragma has been upgraded from version 0.11 to 0.18.</p>

<p>The <code>use re &#39;/flags&#39;</code> subpragma is new.</p>

<p>The regmust() function used to crash when called on a regular expression belonging to a pluggable engine. Now it croaks instead.</p>

<p>regmust() no longer leaks memory.</p>

</li>
<li><p><a href="Safe.html">Safe</a> has been upgraded from version 2.25 to 2.29.</p>

<p>Coderefs returned by reval() and rdo() are now wrapped via wrap_code_refs() (5.12.1).</p>

<p>This fixes a possible infinite loop when looking for coderefs.</p>

<p>It adds several <code>version::vxs::*</code> routines to the default share.</p>

</li>
<li><p><a href="SDBM_File.html">SDBM_File</a> has been upgraded from version 1.06 to 1.09.</p>

</li>
<li><p><a href="SelfLoader.html">SelfLoader</a> has been upgraded from 1.17 to 1.18.</p>

<p>It now works in taint mode [perl #72062].</p>

</li>
<li><p>The <a href="sigtrap.html">sigtrap</a> pragma has been upgraded from version 1.04 to 1.05.</p>

<p>It no longer tries to modify read-only arguments when generating a backtrace [perl #72340].</p>

</li>
<li><p><a href="Socket.html">Socket</a> has been upgraded from version 1.87 to 1.94.</p>

<p>See <a href="perl5140delta.html#Improved-IPv6-support">&quot;Improved IPv6 support&quot;</a> above.</p>

</li>
<li><p><a href="Storable.html">Storable</a> has been upgraded from version 2.22 to 2.27.</p>

<p>Includes performance improvement for overloaded classes.</p>

<p>This adds support for serialising code references that contain UTF-8 strings correctly. The <a href="Storable.html">Storable</a> minor version number changed as a result, meaning that <a href="Storable.html">Storable</a> users who set <code>$Storable::accept_future_minor</code> to a <code>FALSE</code> value will see errors (see <a href="Storable.html#FORWARD-COMPATIBILITY">&quot;FORWARD COMPATIBILITY&quot; in Storable</a> for more details).</p>

<p>Freezing no longer gets confused if the Perl stack gets reallocated during freezing [perl #80074].</p>

</li>
<li><p><a href="./Sys::Hostname.html">Sys::Hostname</a> has been upgraded from version 1.11 to 1.16.</p>

</li>
<li><p><a href="./Term::ANSIColor.html">Term::ANSIColor</a> has been upgraded from version 2.02 to 3.00.</p>

</li>
<li><p><a href="./Term::UI.html">Term::UI</a> has been upgraded from version 0.20 to 0.26.</p>

</li>
<li><p><a href="./Test::Harness.html">Test::Harness</a> has been upgraded from version 3.17 to 3.23.</p>

</li>
<li><p><a href="./Test::Simple.html">Test::Simple</a> has been upgraded from version 0.94 to 0.98.</p>

<p>Among many other things, subtests without a <code>plan</code> or <code>no_plan</code> now have an implicit done_testing() added to them.</p>

</li>
<li><p><a href="./Thread::Semaphore.html">Thread::Semaphore</a> has been upgraded from version 2.09 to 2.12.</p>

<p>It provides two new methods that give more control over the decrementing of semaphores: <code>down_nb</code> and <code>down_force</code>.</p>

</li>
<li><p><a href="./Thread::Queue.html">Thread::Queue</a> has been upgraded from version 2.11 to 2.12.</p>

</li>
<li><p>The <a href="threads.html">threads</a> pragma has been upgraded from version 1.75 to 1.83.</p>

</li>
<li><p>The <a href="./threads::shared.html">threads::shared</a> pragma has been upgraded from version 1.32 to 1.37.</p>

</li>
<li><p><a href="./Tie::Hash.html">Tie::Hash</a> has been upgraded from version 1.03 to 1.04.</p>

<p>Calling <code>Tie::Hash-&gt;TIEHASH()</code> used to loop forever. Now it <code>croak</code>s.</p>

</li>
<li><p><a href="./Tie::Hash::NamedCapture.html">Tie::Hash::NamedCapture</a> has been upgraded from version 0.06 to 0.08.</p>

</li>
<li><p><a href="./Tie::RefHash.html">Tie::RefHash</a> has been upgraded from version 1.38 to 1.39.</p>

</li>
<li><p><a href="./Time::HiRes.html">Time::HiRes</a> has been upgraded from version 1.9719 to 1.9721_01.</p>

</li>
<li><p><a href="./Time::Local.html">Time::Local</a> has been upgraded from version 1.1901_01 to 1.2000.</p>

</li>
<li><p><a href="./Time::Piece.html">Time::Piece</a> has been upgraded from version 1.15_01 to 1.20_01.</p>

</li>
<li><p><a href="./Unicode::Collate.html">Unicode::Collate</a> has been upgraded from version 0.52_01 to 0.73.</p>

<p><a href="./Unicode::Collate.html">Unicode::Collate</a> has been updated to use Unicode 6.0.0.</p>

<p><a href="./Unicode::Collate::Locale.html">Unicode::Collate::Locale</a> now supports a plethora of new locales: <i>ar, be, bg, de__phonebook, hu, hy, kk, mk, nso, om, tn, vi, hr, ig, ja, ko, ru, sq, se, sr, to, uk, zh, zh__big5han, zh__gb2312han, zh__pinyin</i>, and <i>zh__stroke</i>.</p>

<p>The following modules have been added:</p>

<p><a href="./Unicode::Collate::CJK::Big5.html">Unicode::Collate::CJK::Big5</a> for <code>zh__big5han</code> which makes tailoring of CJK Unified Ideographs in the order of CLDR&#39;s big5han ordering.</p>

<p><a href="./Unicode::Collate::CJK::GB2312.html">Unicode::Collate::CJK::GB2312</a> for <code>zh__gb2312han</code> which makes tailoring of CJK Unified Ideographs in the order of CLDR&#39;s gb2312han ordering.</p>

<p><a href="./Unicode::Collate::CJK::JISX0208.html">Unicode::Collate::CJK::JISX0208</a> which makes tailoring of 6355 kanji (CJK Unified Ideographs) in the JIS X 0208 order.</p>

<p><a href="./Unicode::Collate::CJK::Korean.html">Unicode::Collate::CJK::Korean</a> which makes tailoring of CJK Unified Ideographs in the order of CLDR&#39;s Korean ordering.</p>

<p><a href="./Unicode::Collate::CJK::Pinyin.html">Unicode::Collate::CJK::Pinyin</a> for <code>zh__pinyin</code> which makes tailoring of CJK Unified Ideographs in the order of CLDR&#39;s pinyin ordering.</p>

<p><a href="./Unicode::Collate::CJK::Stroke.html">Unicode::Collate::CJK::Stroke</a> for <code>zh__stroke</code> which makes tailoring of CJK Unified Ideographs in the order of CLDR&#39;s stroke ordering.</p>

<p>This also sees the switch from using the pure-Perl version of this module to the XS version.</p>

</li>
<li><p><a href="./Unicode::Normalize.html">Unicode::Normalize</a> has been upgraded from version 1.03 to 1.10.</p>

</li>
<li><p><a href="./Unicode::UCD.html">Unicode::UCD</a> has been upgraded from version 0.27 to 0.32.</p>

<p>A new function, Unicode::UCD::num(), has been added. This function returns the numeric value of the string passed it or <code>undef</code> if the string in its entirety has no &quot;safe&quot; numeric value. (For more detail, and for the definition of &quot;safe&quot;, see <a href="./Unicode::UCD.html#num%28%29">&quot;num()&quot; in Unicode::UCD</a>.)</p>

<p>This upgrade also includes several bug fixes:</p>

<dl>

<dt id="charinfo()"><a class="permalink" href="perl5140delta.html#charinfo()">#</a><a id="charinfo"></a>charinfo()</dt>
<dd>

<ul>

<li><p>It is now updated to Unicode Version 6.0.0 with <i>Corrigendum #8</i>, excepting that, just as with Perl 5.14, the code point at U+1F514 has no name.</p>

</li>
<li><p>Hangul syllable code points have the correct names, and their decompositions are always output without requiring <a href="./Lingua::KO::Hangul::Util.html">Lingua::KO::Hangul::Util</a> to be installed.</p>

</li>
<li><p>CJK (Chinese-Japanese-Korean) code points U+2A700 to U+2B734 and U+2B740 to U+2B81D are now properly handled.</p>

</li>
<li><p>Numeric values are now output for those CJK code points that have them.</p>

</li>
<li><p>Names output for code points with multiple aliases are now the corrected ones.</p>

</li>
</ul>

</dd>
<dt id="charscript()"><a class="permalink" href="perl5140delta.html#charscript()">#</a><a id="charscript"></a>charscript()</dt>
<dd>

<p>This now correctly returns &quot;Unknown&quot; instead of <code>undef</code> for the script of a code point that hasn&#39;t been assigned another one.</p>

</dd>
<dt id="charblock()"><a class="permalink" href="perl5140delta.html#charblock()">#</a><a id="charblock"></a>charblock()</dt>
<dd>

<p>This now correctly returns &quot;No_Block&quot; instead of <code>undef</code> for the block of a code point that hasn&#39;t been assigned to another one.</p>

</dd>
</dl>

</li>
<li><p>The <a href="version.html">version</a> pragma has been upgraded from 0.82 to 0.88.</p>

<p>Because of a bug, now fixed, the is_strict() and is_lax() functions did not work when exported (5.12.1).</p>

</li>
<li><p>The <a href="warnings.html">warnings</a> pragma has been upgraded from version 1.09 to 1.12.</p>

<p>Calling <code>use warnings</code> without arguments is now significantly more efficient.</p>

</li>
<li><p>The <a href="./warnings::register.html">warnings::register</a> pragma has been upgraded from version 1.01 to 1.02.</p>

<p>It is now possible to register warning categories other than the names of packages using <a href="./warnings::register.html">warnings::register</a>. See <a href="http://man.he.net/man1/perllexwarn">perllexwarn(1)</a> for more information.</p>

</li>
<li><p><a href="XSLoader.html">XSLoader</a> has been upgraded from version 0.10 to 0.13.</p>

</li>
<li><p><a href="./VMS::DCLsym.html">VMS::DCLsym</a> has been upgraded from version 1.03 to 1.05.</p>

<p>Two bugs have been fixed [perl #84086]:</p>

<p>The symbol table name was lost when tying a hash, due to a thinko in <code>TIEHASH</code>. The result was that all tied hashes interacted with the local symbol table.</p>

<p>Unless a symbol table name had been explicitly specified in the call to the constructor, querying the special key <code>:LOCAL</code> failed to identify objects connected to the local symbol table.</p>

</li>
<li><p>The <a href="Win32.html">Win32</a> module has been upgraded from version 0.39 to 0.44.</p>

<p>This release has several new functions: Win32::GetSystemMetrics(), Win32::GetProductInfo(), Win32::GetOSDisplayName().</p>

<p>The names returned by Win32::GetOSName() and Win32::GetOSDisplayName() have been corrected.</p>

</li>
<li><p><a href="./XS::Typemap.html">XS::Typemap</a> has been upgraded from version 0.03 to 0.05.</p>

</li>
</ul>

<h2 id="Removed-Modules-and-Pragmata"><a class="permalink" href="perl5140delta.html#Removed-Modules-and-Pragmata">#</a><a id="Removed"></a>Removed Modules and Pragmata</h2>

<p>As promised in Perl 5.12.0&#39;s release notes, the following modules have been removed from the core distribution, and if needed should be installed from CPAN instead.</p>

<ul>

<li><p><a href="./Class::ISA.html">Class::ISA</a> has been removed from the Perl core. Prior version was 0.36.</p>

</li>
<li><p><a href="./Pod::Plainer.html">Pod::Plainer</a> has been removed from the Perl core. Prior version was 1.02.</p>

</li>
<li><p><a href="Switch.html">Switch</a> has been removed from the Perl core. Prior version was 2.16.</p>

</li>
</ul>

<p>The removal of <a href="Shell.html">Shell</a> has been deferred until after 5.14, as the implementation of <a href="Shell.html">Shell</a> shipped with 5.12.0 did not correctly issue the warning that it was to be removed from core.</p>

<h1 id="Documentation"><a class="permalink" href="perl5140delta.html#Documentation">#</a>Documentation</h1>

<h2 id="New-Documentation"><a class="permalink" href="perl5140delta.html#New-Documentation">#</a><a id="New4"></a>New Documentation</h2>

<h3 id="perlgpl"><a class="permalink" href="perl5140delta.html#perlgpl">#</a><a href="perlgpl.html">perlgpl</a></h3>

<p><a href="perlgpl.html">perlgpl</a> has been updated to contain GPL version 1, as is included in the <i>README</i> distributed with Perl (5.12.1).</p>

<h3 id="Perl-5.12.x-delta-files"><a class="permalink" href="perl5140delta.html#Perl-5.12.x-delta-files">#</a><a id="Perl2"></a>Perl 5.12.x delta files</h3>

<p>The perldelta files for Perl 5.12.1 to 5.12.3 have been added from the maintenance branch: <a href="perl5121delta.html">perl5121delta</a>, <a href="perl5122delta.html">perl5122delta</a>, <a href="perl5123delta.html">perl5123delta</a>.</p>

<h3 id="perlpodstyle"><a class="permalink" href="perl5140delta.html#perlpodstyle">#</a><a href="perlpodstyle.html">perlpodstyle</a></h3>

<p>New style guide for POD documentation, split mostly from the NOTES section of the <a href="http://man.he.net/man1/pod2man">pod2man(1)</a> manpage.</p>

<h3 id="perlsource,-perlinterp,-perlhacktut,-and-perlhacktips"><a class="permalink" href="perl5140delta.html#perlsource,-perlinterp,-perlhacktut,-and-perlhacktips">#</a><a id="perlsource"></a><a id="perlsource-perlinterp-perlhacktut-and-perlhacktips"></a><a href="perlsource.html">perlsource</a>, <a href="perlinterp.html">perlinterp</a>, <a href="perlhacktut.html">perlhacktut</a>, and <a href="perlhacktips.html">perlhacktips</a></h3>

<p>See <a href="perl5140delta.html#perlhack-and-perlrepository-revamp">&quot;perlhack and perlrepository revamp&quot;</a>, below.</p>

<h2 id="Changes-to-Existing-Documentation"><a class="permalink" href="perl5140delta.html#Changes-to-Existing-Documentation">#</a><a id="Changes1"></a>Changes to Existing Documentation</h2>

<h3 id="perlmodlib-is-now-complete"><a class="permalink" href="perl5140delta.html#perlmodlib-is-now-complete">#</a><a id="perlmodlib"></a><a href="perlmodlib.html">perlmodlib</a> is now complete</h3>

<p>The <a href="perlmodlib.html">perlmodlib</a> manpage that came with Perl 5.12.0 was missing several modules due to a bug in the script that generates the list. This has been fixed [perl #74332] (5.12.1).</p>

<h3 id="Replace-incorrect-tr///-table-in-perlebcdic"><a class="permalink" href="perl5140delta.html#Replace-incorrect-tr///-table-in-perlebcdic">#</a><a id="Replace"></a><a id="Replace-incorrect-tr-table-in-perlebcdic"></a>Replace incorrect tr/// table in <a href="perlebcdic.html">perlebcdic</a></h3>

<p><a href="perlebcdic.html">perlebcdic</a> contains a helpful table to use in <code>tr///</code> to convert between EBCDIC and Latin1/ASCII. The table was the inverse of the one it describes, though the code that used the table worked correctly for the specific example given.</p>

<p>The table has been corrected and the sample code changed to correspond.</p>

<p>The table has also been changed to hex from octal, and the recipes in the pod have been altered to print out leading zeros to make all values the same length.</p>

<h3 id="Tricks-for-user-defined-casing"><a class="permalink" href="perl5140delta.html#Tricks-for-user-defined-casing">#</a><a id="Tricks"></a>Tricks for user-defined casing</h3>

<p><a href="perlunicode.html">perlunicode</a> now contains an explanation of how to override, mangle and otherwise tweak the way Perl handles upper-, lower- and other-case conversions on Unicode data, and how to provide scoped changes to alter one&#39;s own code&#39;s behaviour without stomping on anybody else&#39;s.</p>

<h3 id="INSTALL-explicitly-states-that-Perl-requires-a-C89-compiler"><a class="permalink" href="perl5140delta.html#INSTALL-explicitly-states-that-Perl-requires-a-C89-compiler">#</a><a id="INSTALL"></a>INSTALL explicitly states that Perl requires a C89 compiler</h3>

<p>This was already true, but it&#39;s now Officially Stated For The Record (5.12.2).</p>

<h3 id="Explanation-of-\xHH-and-\oOOO-escapes"><a class="permalink" href="perl5140delta.html#Explanation-of-%5CxHH-and-%5CoOOO-escapes">#</a><a id="Explanation"></a><a id="Explanation-of-xHH-and-oOOO-escapes"></a>Explanation of <code>\x<i>HH</i></code> and <code>\o<i>OOO</i></code> escapes</h3>

<p><a href="perlop.html">perlop</a> has been updated with more detailed explanation of these two character escapes.</p>

<h3 id="-0NNN-switch"><a class="permalink" href="perl5140delta.html#-0NNN-switch">#</a><a id="NNN-switch"></a><b>-0<i>NNN</i></b> switch</h3>

<p>In <a href="perlrun.html">perlrun</a>, the behaviour of the <b>-0NNN</b> switch for <b>-0400</b> or higher has been clarified (5.12.2).</p>

<h3 id="Maintenance-policy"><a class="permalink" href="perl5140delta.html#Maintenance-policy">#</a><a id="Maintenance"></a>Maintenance policy</h3>

<p><a href="perlpolicy.html">perlpolicy</a> now contains the policy on what patches are acceptable for maintenance branches (5.12.1).</p>

<h3 id="Deprecation-policy"><a class="permalink" href="perl5140delta.html#Deprecation-policy">#</a><a id="Deprecation"></a>Deprecation policy</h3>

<p><a href="perlpolicy.html">perlpolicy</a> now contains the policy on compatibility and deprecation along with definitions of terms like &quot;deprecation&quot; (5.12.2).</p>

<h3 id="New-descriptions-in-perldiag"><a class="permalink" href="perl5140delta.html#New-descriptions-in-perldiag">#</a><a id="New5"></a>New descriptions in <a href="perldiag.html">perldiag</a></h3>

<p>The following existing diagnostics are now documented:</p>

<ul>

<li><p><a href="perldiag.html#Ambiguous-use-of-%25c-resolved-as-operator-%25c">Ambiguous use of %c resolved as operator %c</a></p>

</li>
<li><p><a href="perldiag.html#Ambiguous-use-of-%25c%7B%25s%7D-resolved-to-%25c%25s">Ambiguous use of %c{%s} resolved to %c%s</a></p>

</li>
<li><p><a href="perldiag.html#Ambiguous-use-of-%25c%7B%25s%5B...%5D%7D-resolved-to-%25c%25s%5B...%5D">Ambiguous use of %c{%s[...]} resolved to %c%s[...]</a></p>

</li>
<li><p><a href="perldiag.html#Ambiguous-use-of-%25c%7B%25s%7B...%7D%7D-resolved-to-%25c%25s%7B...%7D">Ambiguous use of %c{%s{...}} resolved to %c%s{...}</a></p>

</li>
<li><p><a href="perldiag.html#Ambiguous-use-of-%25s-resolved-as-%26%25s%28%29">Ambiguous use of -%s resolved as -&amp;%s()</a></p>

</li>
<li><p><a href="perldiag.html#Invalid-strict-version-format-%28%25s%29">Invalid strict version format (%s)</a></p>

</li>
<li><p><a href="perldiag.html#Invalid-version-format-%28%25s%29">Invalid version format (%s)</a></p>

</li>
<li><p><a href="perldiag.html#Invalid-version-object">Invalid version object</a></p>

</li>
</ul>

<h3 id="perlbook"><a class="permalink" href="perl5140delta.html#perlbook">#</a><a href="perlbook.html">perlbook</a></h3>

<p><a href="perlbook.html">perlbook</a> has been expanded to cover many more popular books.</p>

<h3 id="SvTRUE-macro"><a class="permalink" href="perl5140delta.html#SvTRUE-macro">#</a><a id="SvTRUE"></a><code>SvTRUE</code> macro</h3>

<p>The documentation for the <code>SvTRUE</code> macro in <a href="perlapi.html">perlapi</a> was simply wrong in stating that get-magic is not processed. It has been corrected.</p>

<h3 id="op-manipulation-functions"><a class="permalink" href="perl5140delta.html#op-manipulation-functions">#</a><a id="op"></a>op manipulation functions</h3>

<p>Several API functions that process optrees have been newly documented.</p>

<h3 id="perlvar-revamp"><a class="permalink" href="perl5140delta.html#perlvar-revamp">#</a><a id="perlvar"></a><a href="perlvar.html">perlvar</a> revamp</h3>

<p><a href="perlvar.html">perlvar</a> reorders the variables and groups them by topic. Each variable introduced after Perl 5.000 notes the first version in which it is available. <a href="perlvar.html">perlvar</a> also has a new section for deprecated variables to note when they were removed.</p>

<h3 id="Array-and-hash-slices-in-scalar-context"><a class="permalink" href="perl5140delta.html#Array-and-hash-slices-in-scalar-context">#</a><a id="Array1"></a>Array and hash slices in scalar context</h3>

<p>These are now documented in <a href="perldata.html">perldata</a>.</p>

<h3 id="use-locale-and-formats"><a class="permalink" href="perl5140delta.html#use-locale-and-formats">#</a><a id="use1"></a><code>use locale</code> and formats</h3>

<p><a href="perlform.html">perlform</a> and <a href="perllocale.html">perllocale</a> have been corrected to state that <code>use locale</code> affects formats.</p>

<h3 id="overload"><a class="permalink" href="perl5140delta.html#overload">#</a><a href="overload.html">overload</a></h3>

<p><a href="overload.html">overload</a>&#39;s documentation has practically undergone a rewrite. It is now much more straightforward and clear.</p>

<h3 id="perlhack-and-perlrepository-revamp"><a class="permalink" href="perl5140delta.html#perlhack-and-perlrepository-revamp">#</a><a id="perlhack"></a>perlhack and perlrepository revamp</h3>

<p>The <a href="perlhack.html">perlhack</a> document is now much shorter, and focuses on the Perl 5 development process and submitting patches to Perl. The technical content has been moved to several new documents, <a href="perlsource.html">perlsource</a>, <a href="perlinterp.html">perlinterp</a>, <a href="perlhacktut.html">perlhacktut</a>, and <a href="perlhacktips.html">perlhacktips</a>. This technical content has been only lightly edited.</p>

<p>The perlrepository document has been renamed to <a href="perlgit.html">perlgit</a>. This new document is just a how-to on using git with the Perl source code. Any other content that used to be in perlrepository has been moved to <a href="perlhack.html">perlhack</a>.</p>

<h3 id="Time::Piece-examples"><a class="permalink" href="perl5140delta.html#Time::Piece-examples">#</a><a id="Time"></a>Time::Piece examples</h3>

<p>Examples in <a href="perlfaq4.html">perlfaq4</a> have been updated to show the use of <a href="./Time::Piece.html">Time::Piece</a>.</p>

<h1 id="Diagnostics"><a class="permalink" href="perl5140delta.html#Diagnostics">#</a>Diagnostics</h1>

<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="perldiag.html">perldiag</a>.</p>

<h2 id="New-Diagnostics"><a class="permalink" href="perl5140delta.html#New-Diagnostics">#</a><a id="New6"></a>New Diagnostics</h2>

<h3 id="New-Errors"><a class="permalink" href="perl5140delta.html#New-Errors">#</a><a id="New7"></a>New Errors</h3>

<dl>

<dt id="Closure-prototype-called"><a class="permalink" href="perl5140delta.html#Closure-prototype-called">#</a><a id="Closure"></a>Closure prototype called</dt>
<dd>

<p>This error occurs when a subroutine reference passed to an attribute handler is called, if the subroutine is a closure [perl #68560].</p>

</dd>
<dt id="Insecure-user-defined-property-%s"><a class="permalink" href="perl5140delta.html#Insecure-user-defined-property-%25s">#</a><a id="Insecure"></a><a id="Insecure-user-defined-property-s"></a>Insecure user-defined property %s</dt>
<dd>

<p>Perl detected tainted data when trying to compile a regular expression that contains a call to a user-defined character property function, meaning <code>\p{IsFoo}</code> or <code>\p{InFoo}</code>. See <a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a> and <a href="perlsec.html">perlsec</a>.</p>

</dd>
<dt id="panic:-gp_free-failed-to-free-glob-pointer-something-is-repeatedly-re-creating-entries"><a class="permalink" href="perl5140delta.html#panic:-gp_free-failed-to-free-glob-pointer-something-is-repeatedly-re-creating-entries">#</a><a id="panic"></a><a id="panic:-gp_free-failed-to-free-glob-pointer---something-is-repeatedly-re-creating-entries"></a>panic: gp_free failed to free glob pointer - something is repeatedly re-creating entries</dt>
<dd>

<p>This new error is triggered if a destructor called on an object in a typeglob that is being freed creates a new typeglob entry containing an object with a destructor that creates a new entry containing an object etc.</p>

</dd>
<dt id="Parsing-code-internal-error-(%s)"><a class="permalink" href="perl5140delta.html#Parsing-code-internal-error-(%25s)">#</a><a id="Parsing1"></a><a id="Parsing-code-internal-error-s"></a>Parsing code internal error (%s)</dt>
<dd>

<p>This new fatal error is produced when parsing code supplied by an extension violates the parser&#39;s API in a detectable way.</p>

</dd>
<dt id="refcnt:-fd-%d%s"><a class="permalink" href="perl5140delta.html#refcnt:-fd-%25d%25s">#</a><a id="refcnt"></a><a id="refcnt:-fd-d-s"></a>refcnt: fd %d%s</dt>
<dd>

<p>This new error only occurs if an internal consistency check fails when a pipe is about to be closed.</p>

</dd>
<dt id="Regexp-modifier-&quot;/%c&quot;-may-not-appear-twice"><a class="permalink" href="perl5140delta.html#Regexp-modifier-%22/%25c%22-may-not-appear-twice">#</a><a id="Regexp"></a><a id="Regexp-modifier-c-may-not-appear-twice"></a>Regexp modifier &quot;/%c&quot; may not appear twice</dt>
<dd>

<p>The regular expression pattern has one of the mutually exclusive modifiers repeated.</p>

</dd>
<dt id="Regexp-modifiers-&quot;/%c&quot;-and-&quot;/%c&quot;-are-mutually-exclusive"><a class="permalink" href="perl5140delta.html#Regexp-modifiers-%22/%25c%22-and-%22/%25c%22-are-mutually-exclusive">#</a><a id="Regexp1"></a><a id="Regexp-modifiers-c-and-c-are-mutually-exclusive"></a>Regexp modifiers &quot;/%c&quot; and &quot;/%c&quot; are mutually exclusive</dt>
<dd>

<p>The regular expression pattern has more than one of the mutually exclusive modifiers.</p>

</dd>
<dt id="Using-!~-with-%s-doesn&#39;t-make-sense"><a class="permalink" href="perl5140delta.html#Using-!~-with-%25s-doesn&#39;t-make-sense">#</a><a id="Using"></a><a id="Using-with-s-doesnt-make-sense"></a>Using !~ with %s doesn&#39;t make sense</dt>
<dd>

<p>This error occurs when <code>!~</code> is used with <code>s///r</code> or <code>y///r</code>.</p>

</dd>
</dl>

<h3 id="New-Warnings"><a class="permalink" href="perl5140delta.html#New-Warnings">#</a><a id="New8"></a>New Warnings</h3>

<dl>

<dt id="&quot;\b{&quot;-is-deprecated;-use-&quot;\b\{&quot;-instead"><a class="permalink" href="perl5140delta.html#%22%5Cb%7B%22-is-deprecated;-use-%22%5Cb%5C%7B%22-instead">#</a><a id="b-is-deprecated-use-b-instead"></a>&quot;\b{&quot; is deprecated; use &quot;\b\{&quot; instead</dt>
<dd>

</dd>
<dt id="&quot;\B{&quot;-is-deprecated;-use-&quot;\B\{&quot;-instead"><a class="permalink" href="perl5140delta.html#%22%5CB%7B%22-is-deprecated;-use-%22%5CB%5C%7B%22-instead">#</a><a id="B-is-deprecated-use-B-instead"></a>&quot;\B{&quot; is deprecated; use &quot;\B\{&quot; instead</dt>
<dd>

<p>Use of an unescaped &quot;{&quot; immediately following a <code>\b</code> or <code>\B</code> is now deprecated in order to reserve its use for Perl itself in a future release.</p>

</dd>
<dt id="Operation-&quot;%s&quot;-returns-its-argument-for-..."><a class="permalink" href="perl5140delta.html#Operation-%22%25s%22-returns-its-argument-for-...">#</a><a id="Operation"></a><a id="Operation-s-returns-its-argument-for"></a>Operation &quot;%s&quot; returns its argument for ...</dt>
<dd>

<p>Performing an operation requiring Unicode semantics (such as case-folding) on a Unicode surrogate or a non-Unicode character now triggers this warning.</p>

</dd>
<dt id="Use-of-qw(...)-as-parentheses-is-deprecated"><a class="permalink" href="perl5140delta.html#Use-of-qw(...)-as-parentheses-is-deprecated">#</a><a id="Use1"></a><a id="Use-of-qw-...-as-parentheses-is-deprecated"></a>Use of qw(...) as parentheses is deprecated</dt>
<dd>

<p>See <a href="perl5140delta.html#Use-of-qw%28...%29-as-parentheses">&quot;Use of qw(...) as parentheses&quot;</a>, above, for details.</p>

</dd>
</dl>

<h2 id="Changes-to-Existing-Diagnostics"><a class="permalink" href="perl5140delta.html#Changes-to-Existing-Diagnostics">#</a><a id="Changes2"></a>Changes to Existing Diagnostics</h2>

<ul>

<li><p>The &quot;Variable $foo is not imported&quot; warning that precedes a <code>strict &#39;vars&#39;</code> error has now been assigned the &quot;misc&quot; category, so that <code>no warnings</code> will suppress it [perl #73712].</p>

</li>
<li><p>warn() and die() now produce &quot;Wide character&quot; warnings when fed a character outside the byte range if <code>STDERR</code> is a byte-sized handle.</p>

</li>
<li><p>The &quot;Layer does not match this perl&quot; error message has been replaced with these more helpful messages [perl #73754]:</p>

<ul>

<li><p>PerlIO layer function table size (%d) does not match size expected by this perl (%d)</p>

</li>
<li><p>PerlIO layer instance size (%d) does not match size expected by this perl (%d)</p>

</li>
</ul>

</li>
<li><p>The &quot;Found = in conditional&quot; warning that is emitted when a constant is assigned to a variable in a condition is now withheld if the constant is actually a subroutine or one generated by <code>use constant</code>, since the value of the constant may not be known at the time the program is written [perl #77762].</p>

</li>
<li><p>Previously, if none of the gethostbyaddr(), gethostbyname() and gethostent() functions were implemented on a given platform, they would all die with the message &quot;Unsupported socket function &#39;gethostent&#39; called&quot;, with analogous messages for getnet*() and getserv*(). This has been corrected.</p>

</li>
<li><p>The warning message about unrecognized regular expression escapes passed through has been changed to include any literal &quot;{&quot; following the two-character escape. For example, &quot;\q{&quot; is now emitted instead of &quot;\q&quot;.</p>

</li>
</ul>

<h1 id="Utility-Changes"><a class="permalink" href="perl5140delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<h3 id="perlbug(1)"><a class="permalink" href="perl5140delta.html#perlbug(1)">#</a><a id="perlbug"></a><a id="perlbug-1"></a><a href="http://man.he.net/man1/perlbug">perlbug(1)</a></h3>

<ul>

<li><p><a href="perlbug.html">perlbug</a> now looks in the EMAIL environment variable for a return address if the REPLY-TO and REPLYTO variables are empty.</p>

</li>
<li><p><a href="perlbug.html">perlbug</a> did not previously generate a &quot;From:&quot; header, potentially resulting in dropped mail; it now includes that header.</p>

</li>
<li><p>The user&#39;s address is now used as the Return-Path.</p>

<p>Many systems these days don&#39;t have a valid Internet domain name, and perlbug@perl.org does not accept email with a return-path that does not resolve. So the user&#39;s address is now passed to sendmail so it&#39;s less likely to get stuck in a mail queue somewhere [perl #82996].</p>

</li>
<li><p><a href="perlbug.html">perlbug</a> now always gives the reporter a chance to change the email address it guesses for them (5.12.2).</p>

</li>
<li><p><a href="perlbug.html">perlbug</a> should no longer warn about uninitialized values when using the <b>-d</b> and <b>-v</b> options (5.12.2).</p>

</li>
</ul>

<h3 id="perl5db.pl"><a class="permalink" href="perl5140delta.html#perl5db.pl">#</a><a id="perl5db"></a><a href="perl5db.pl">perl5db.pl</a></h3>

<ul>

<li><p>The remote terminal works after forking and spawns new sessions, one per forked process.</p>

</li>
</ul>

<h3 id="ptargrep"><a class="permalink" href="perl5140delta.html#ptargrep">#</a><a href="ptargrep.html">ptargrep</a></h3>

<ul>

<li><p><a href="ptargrep.html">ptargrep</a> is a new utility to apply pattern matching to the contents of files in a tar archive. It comes with <code>Archive::Tar</code>.</p>

</li>
</ul>

<h1 id="Configuration-and-Compilation"><a class="permalink" href="perl5140delta.html#Configuration-and-Compilation">#</a><a id="Configuration1"></a>Configuration and Compilation</h1>

<p>See also <a href="perl5140delta.html#Naming-fixes-in-Policy_sh.SH-may-invalidate-Policy.sh">&quot;Naming fixes in Policy_sh.SH may invalidate Policy.sh&quot;</a>, above.</p>

<ul>

<li><p>CCINCDIR and CCLIBDIR for the mingw64 cross-compiler are now correctly under <i>$(CCHOME)\mingw\include</i> and <i>\lib</i> rather than immediately below <i>$(CCHOME)</i>.</p>

<p>This means the &quot;incpath&quot;, &quot;libpth&quot;, &quot;ldflags&quot;, &quot;lddlflags&quot; and &quot;ldflags_nolargefiles&quot; values in <i>Config.pm</i> and <i>Config_heavy.pl</i> are now set correctly.</p>

</li>
<li><p><code>make test.valgrind</code> has been adjusted to account for <i>cpan/dist/ext</i> separation.</p>

</li>
<li><p>On compilers that support it, <b>-Wwrite-strings</b> is now added to cflags by default.</p>

</li>
<li><p>The <a href="Encode.html">Encode</a> module can now (once again) be included in a static Perl build. The special-case handling for this situation got broken in Perl 5.11.0, and has now been repaired.</p>

</li>
<li><p>The previous default size of a PerlIO buffer (4096 bytes) has been increased to the larger of 8192 bytes and your local BUFSIZ. Benchmarks show that doubling this decade-old default increases read and write performance by around 25% to 50% when using the default layers of perlio on top of unix. To choose a non-default size, such as to get back the old value or to obtain an even larger value, configure with:</p>

<pre><code class="plaintext">./Configure -Accflags=-DPERLIOBUF_DEFAULT_BUFSIZ=N</code></pre>

<p>where N is the desired size in bytes; it should probably be a multiple of your page size.</p>

</li>
<li><p>An &quot;incompatible operand types&quot; error in ternary expressions when building with <code>clang</code> has been fixed (5.12.2).</p>

</li>
<li><p>Perl now skips setuid <a href="./File::Copy.html">File::Copy</a> tests on partitions it detects mounted as <code>nosuid</code> (5.12.2).</p>

</li>
</ul>

<h1 id="Platform-Support"><a class="permalink" href="perl5140delta.html#Platform-Support">#</a><a id="Platform"></a>Platform Support</h1>

<h2 id="New-Platforms"><a class="permalink" href="perl5140delta.html#New-Platforms">#</a><a id="New9"></a>New Platforms</h2>

<dl>

<dt id="AIX"><a class="permalink" href="perl5140delta.html#AIX">#</a>AIX</dt>
<dd>

<p>Perl now builds on AIX 4.2 (5.12.1).</p>

</dd>
</dl>

<h2 id="Discontinued-Platforms"><a class="permalink" href="perl5140delta.html#Discontinued-Platforms">#</a><a id="Discontinued"></a>Discontinued Platforms</h2>

<dl>

<dt id="Apollo-DomainOS"><a class="permalink" href="perl5140delta.html#Apollo-DomainOS">#</a><a id="Apollo"></a>Apollo DomainOS</dt>
<dd>

<p>The last vestiges of support for this platform have been excised from the Perl distribution. It was officially discontinued in version 5.12.0. It had not worked for years before that.</p>

</dd>
<dt id="MacOS-Classic"><a class="permalink" href="perl5140delta.html#MacOS-Classic">#</a><a id="MacOS"></a>MacOS Classic</dt>
<dd>

<p>The last vestiges of support for this platform have been excised from the Perl distribution. It was officially discontinued in an earlier version.</p>

</dd>
</dl>

<h2 id="Platform-Specific-Notes"><a class="permalink" href="perl5140delta.html#Platform-Specific-Notes">#</a><a id="Platform1"></a>Platform-Specific Notes</h2>

<h3 id="AIX1"><a class="permalink" href="perl5140delta.html#AIX1">#</a>AIX</h3>

<ul>

<li><p><i>README.aix</i> has been updated with information about the XL C/C++ V11 compiler suite (5.12.2).</p>

</li>
</ul>

<h3 id="ARM"><a class="permalink" href="perl5140delta.html#ARM">#</a>ARM</h3>

<ul>

<li><p>The <code>d_u32align</code> configuration probe on ARM has been fixed (5.12.2).</p>

</li>
</ul>

<h3 id="Cygwin"><a class="permalink" href="perl5140delta.html#Cygwin">#</a>Cygwin</h3>

<ul>

<li><p><a href="https://perldoc.perl.org/5.35.0/MakeMaker">MakeMaker</a> has been updated to build manpages on cygwin.</p>

</li>
<li><p>Improved rebase behaviour</p>

<p>If a DLL is updated on cygwin the old imagebase address is reused. This solves most rebase errors, especially when updating on core DLL&#39;s. See <a href="http://www.tishler.net/jason/software/rebase/rebase-2.4.2.README">http://www.tishler.net/jason/software/rebase/rebase-2.4.2.README</a> for more information.</p>

</li>
<li><p>Support for the standard cygwin dll prefix (needed for FFIs)</p>

</li>
<li><p>Updated build hints file</p>

</li>
</ul>

<h3 id="FreeBSD-7"><a class="permalink" href="perl5140delta.html#FreeBSD-7">#</a><a id="FreeBSD"></a>FreeBSD 7</h3>

<ul>

<li><p>FreeBSD 7 no longer contains <i>/usr/bin/objformat</i>. At build time, Perl now skips the <i>objformat</i> check for versions 7 and higher and assumes ELF (5.12.1).</p>

</li>
</ul>

<h3 id="HP-UX"><a class="permalink" href="perl5140delta.html#HP-UX">#</a><a id="HP"></a>HP-UX</h3>

<ul>

<li><p>Perl now allows <b>-Duse64bitint</b> without promoting to <code>use64bitall</code> on HP-UX (5.12.1).</p>

</li>
</ul>

<h3 id="IRIX"><a class="permalink" href="perl5140delta.html#IRIX">#</a>IRIX</h3>

<ul>

<li><p>Conversion of strings to floating-point numbers is now more accurate on IRIX systems [perl #32380].</p>

</li>
</ul>

<h3 id="Mac-OS-X"><a class="permalink" href="perl5140delta.html#Mac-OS-X">#</a><a id="Mac"></a>Mac OS X</h3>

<ul>

<li><p>Early versions of Mac OS X (Darwin) had buggy implementations of the setregid(), setreuid(), setrgid(,) and setruid() functions, so Perl would pretend they did not exist.</p>

<p>These functions are now recognised on Mac OS 10.5 (Leopard; Darwin 9) and higher, as they have been fixed [perl #72990].</p>

</li>
</ul>

<h3 id="MirBSD"><a class="permalink" href="perl5140delta.html#MirBSD">#</a>MirBSD</h3>

<ul>

<li><p>Previously if you built Perl with a shared <i>libperl.so</i> on MirBSD (the default config), it would work up to the installation; however, once installed, it would be unable to find <i>libperl</i>. Path handling is now treated as in the other BSD dialects.</p>

</li>
</ul>

<h3 id="NetBSD"><a class="permalink" href="perl5140delta.html#NetBSD">#</a>NetBSD</h3>

<ul>

<li><p>The NetBSD hints file has been changed to make the system malloc the default.</p>

</li>
</ul>

<h3 id="OpenBSD"><a class="permalink" href="perl5140delta.html#OpenBSD">#</a>OpenBSD</h3>

<ul>

<li><p>OpenBSD &gt; 3.7 has a new malloc implementation which is <i>mmap</i>-based, and as such can release memory back to the OS; however, Perl&#39;s use of this malloc causes a substantial slowdown, so we now default to using Perl&#39;s malloc instead [perl #75742].</p>

</li>
</ul>

<h3 id="OpenVOS"><a class="permalink" href="perl5140delta.html#OpenVOS">#</a>OpenVOS</h3>

<ul>

<li><p>Perl now builds again with OpenVOS (formerly known as Stratus VOS) [perl #78132] (5.12.3).</p>

</li>
</ul>

<h3 id="Solaris"><a class="permalink" href="perl5140delta.html#Solaris">#</a>Solaris</h3>

<ul>

<li><p>DTrace is now supported on Solaris. There used to be build failures, but these have been fixed [perl #73630] (5.12.3).</p>

</li>
</ul>

<h3 id="VMS"><a class="permalink" href="perl5140delta.html#VMS">#</a>VMS</h3>

<ul>

<li><p>Extension building on older (pre 7.3-2) VMS systems was broken because configure.com hit the DCL symbol length limit of 1K. We now work within this limit when assembling the list of extensions in the core build (5.12.1).</p>

</li>
<li><p>We fixed configuring and building Perl with <b>-Uuseperlio</b> (5.12.1).</p>

</li>
<li><p><code>PerlIOUnix_open</code> now honours the default permissions on VMS.</p>

<p>When <code>perlio</code> became the default and <code>unix</code> became the default bottom layer, the most common path for creating files from Perl became <code>PerlIOUnix_open</code>, which has always explicitly used <code>0666</code> as the permission mask. This prevents inheriting permissions from RMS defaults and ACLs, so to avoid that problem, we now pass <code>0777</code> to open(). In the VMS CRTL, <code>0777</code> has a special meaning over and above intersecting with the current umask; specifically, it allows Unix syscalls to preserve native default permissions (5.12.3).</p>

</li>
<li><p>The shortening of symbols longer than 31 characters in the core C sources and in extensions is now by default done by the C compiler rather than by xsubpp (which could only do so for generated symbols in XS code). You can reenable xsubpp&#39;s symbol shortening by configuring with -Uuseshortenedsymbols, but you&#39;ll have some work to do to get the core sources to compile.</p>

</li>
<li><p>Record-oriented files (record format variable or variable with fixed control) opened for write by the <code>perlio</code> layer will now be line-buffered to prevent the introduction of spurious line breaks whenever the perlio buffer fills up.</p>

</li>
<li><p><i>git_version.h</i> is now installed on VMS. This was an oversight in v5.12.0 which caused some extensions to fail to build (5.12.2).</p>

</li>
<li><p>Several memory leaks in <a href="perlfunc.html#stat-FILEHANDLE">stat()</a> have been fixed (5.12.2).</p>

</li>
<li><p>A memory leak in Perl_rename() due to a double allocation has been fixed (5.12.2).</p>

</li>
<li><p>A memory leak in vms_fid_to_name() (used by realpath() and realname()&gt; has been fixed (5.12.2).</p>

</li>
</ul>

<h3 id="Windows"><a class="permalink" href="perl5140delta.html#Windows">#</a>Windows</h3>

<p>See also <a href="perl5140delta.html#fork%28%29-emulation-will-not-wait-for-signalled-children">&quot;fork() emulation will not wait for signalled children&quot;</a> and <a href="perl5140delta.html#Perl-source-code-is-read-in-text-mode-on-Windows">&quot;Perl source code is read in text mode on Windows&quot;</a>, above.</p>

<ul>

<li><p>Fixed build process for SDK2003SP1 compilers.</p>

</li>
<li><p>Compilation with Visual Studio 2010 is now supported.</p>

</li>
<li><p>When using old 32-bit compilers, the define <code>_USE_32BIT_TIME_T</code> is now set in <code>$Config{ccflags}</code>. This improves portability when compiling XS extensions using new compilers, but for a Perl compiled with old 32-bit compilers.</p>

</li>
<li><p><code>$Config{gccversion}</code> is now set correctly when Perl is built using the mingw64 compiler from <a href="http://mingw64.org">http://mingw64.org</a> [perl #73754].</p>

</li>
<li><p>When building Perl with the mingw64 x64 cross-compiler <code>incpath</code>, <code>libpth</code>, <code>ldflags</code>, <code>lddlflags</code> and <code>ldflags_nolargefiles</code> values in <i>Config.pm</i> and <i>Config_heavy.pl</i> were not previously being set correctly because, with that compiler, the include and lib directories are not immediately below <code>$(CCHOME)</code> (5.12.2).</p>

</li>
<li><p>The build process proceeds more smoothly with mingw and dmake when <i>C:\MSYS\bin</i> is in the PATH, due to a <code>Cwd</code> fix.</p>

</li>
<li><p>Support for building with Visual C++ 2010 is now underway, but is not yet complete. See <i>README.win32</i> or <a href="perlwin32.html">perlwin32</a> for more details.</p>

</li>
<li><p>The option to use an externally-supplied crypt(), or to build with no crypt() at all, has been removed. Perl supplies its own crypt() implementation for Windows, and the political situation that required this part of the distribution to sometimes be omitted is long gone.</p>

</li>
</ul>

<h1 id="Internal-Changes"><a class="permalink" href="perl5140delta.html#Internal-Changes">#</a><a id="Internal"></a>Internal Changes</h1>

<h2 id="New-APIs"><a class="permalink" href="perl5140delta.html#New-APIs">#</a><a id="New10"></a>New APIs</h2>

<h3 id="CLONE_PARAMS-structure-added-to-ease-correct-thread-creation"><a class="permalink" href="perl5140delta.html#CLONE_PARAMS-structure-added-to-ease-correct-thread-creation">#</a><a id="CLONE_PARAMS"></a>CLONE_PARAMS structure added to ease correct thread creation</h3>

<p>Modules that create threads should now create <code>CLONE_PARAMS</code> structures by calling the new function Perl_clone_params_new(), and free them with Perl_clone_params_del(). This will ensure compatibility with any future changes to the internals of the <code>CLONE_PARAMS</code> structure layout, and that it is correctly allocated and initialised.</p>

<h3 id="New-parsing-functions"><a class="permalink" href="perl5140delta.html#New-parsing-functions">#</a><a id="New11"></a>New parsing functions</h3>

<p>Several functions have been added for parsing Perl statements and expressions. These functions are meant to be used by XS code invoked during Perl parsing, in a recursive-descent manner, to allow modules to augment the standard Perl syntax.</p>

<ul>

<li><p><a href="perlapi.html#parse_stmtseq">parse_stmtseq()</a> parses a sequence of statements, up to closing brace or EOF.</p>

</li>
<li><p><a href="perlapi.html#parse_fullstmt">parse_fullstmt()</a> parses a complete Perl statement, including optional label.</p>

</li>
<li><p><a href="perlapi.html#parse_barestmt">parse_barestmt()</a> parses a statement without a label.</p>

</li>
<li><p><a href="perlapi.html#parse_block">parse_block()</a> parses a code block.</p>

</li>
<li><p><a href="perlapi.html#parse_label">parse_label()</a> parses a statement label, separate from statements.</p>

</li>
<li><p><a href="perlapi.html#parse_fullexpr"><code>parse_fullexpr()</code></a>, <a href="perlapi.html#parse_listexpr"><code>parse_listexpr()</code></a>, <a href="perlapi.html#parse_termexpr"><code>parse_termexpr()</code></a>, and <a href="perlapi.html#parse_arithexpr"><code>parse_arithexpr()</code></a> parse expressions at various precedence levels.</p>

</li>
</ul>

<h3 id="Hints-hash-API"><a class="permalink" href="perl5140delta.html#Hints-hash-API">#</a><a id="Hints"></a>Hints hash API</h3>

<p>A new C API for introspecting the hinthash <code>%^H</code> at runtime has been added. See <code>cop_hints_2hv</code>, <code>cop_hints_fetchpvn</code>, <code>cop_hints_fetchpvs</code>, <code>cop_hints_fetchsv</code>, and <code>hv_copy_hints_hv</code> in <a href="perlapi.html">perlapi</a> for details.</p>

<p>A new, experimental API has been added for accessing the internal structure that Perl uses for <code>%^H</code>. See the functions beginning with <code>cophh_</code> in <a href="perlapi.html">perlapi</a>.</p>

<h3 id="C-interface-to-caller()"><a class="permalink" href="perl5140delta.html#C-interface-to-caller()">#</a><a id="C"></a><a id="C-interface-to-caller"></a>C interface to caller()</h3>

<p>The <code>caller_cx</code> function has been added as an XSUB-writer&#39;s equivalent of caller(). See <a href="perlapi.html">perlapi</a> for details.</p>

<h3 id="Custom-per-subroutine-check-hooks"><a class="permalink" href="perl5140delta.html#Custom-per-subroutine-check-hooks">#</a><a id="Custom"></a>Custom per-subroutine check hooks</h3>

<p>XS code in an extension module can now annotate a subroutine (whether implemented in XS or in Perl) so that nominated XS code will be called at compile time (specifically as part of op checking) to change the op tree of that subroutine. The compile-time check function (supplied by the extension module) can implement argument processing that can&#39;t be expressed as a prototype, generate customised compile-time warnings, perform constant folding for a pure function, inline a subroutine consisting of sufficiently simple ops, replace the whole call with a custom op, and so on. This was previously all possible by hooking the <code>entersub</code> op checker, but the new mechanism makes it easy to tie the hook to a specific subroutine. See <a href="perlapi.html#cv_set_call_checker">&quot;cv_set_call_checker&quot; in perlapi</a>.</p>

<p>To help in writing custom check hooks, several subtasks within standard <code>entersub</code> op checking have been separated out and exposed in the API.</p>

<h3 id="Improved-support-for-custom-OPs"><a class="permalink" href="perl5140delta.html#Improved-support-for-custom-OPs">#</a><a id="Improved1"></a>Improved support for custom OPs</h3>

<p>Custom ops can now be registered with the new <code>custom_op_register</code> C function and the <code>XOP</code> structure. This will make it easier to add new properties of custom ops in the future. Two new properties have been added already, <code>xop_class</code> and <code>xop_peep</code>.</p>

<p><code>xop_class</code> is one of the OA_*OP constants. It allows <a href="B.html">B</a> and other introspection mechanisms to work with custom ops that aren&#39;t BASEOPs. <code>xop_peep</code> is a pointer to a function that will be called for ops of this type from <code>Perl_rpeep</code>.</p>

<p>See <a href="perlguts.html#Custom-Operators">&quot;Custom Operators&quot; in perlguts</a> and <a href="perlapi.html#Custom-Operators">&quot;Custom Operators&quot; in perlapi</a> for more detail.</p>

<p>The old <code>PL_custom_op_names</code>/<code>PL_custom_op_descs</code> interface is still supported but discouraged.</p>

<h3 id="Scope-hooks"><a class="permalink" href="perl5140delta.html#Scope-hooks">#</a><a id="Scope"></a>Scope hooks</h3>

<p>It is now possible for XS code to hook into Perl&#39;s lexical scope mechanism at compile time, using the new <code>Perl_blockhook_register</code> function. See <a href="perlguts.html#Compile-time-scope-hooks">&quot;Compile-time scope hooks&quot; in perlguts</a>.</p>

<h3 id="The-recursive-part-of-the-peephole-optimizer-is-now-hookable"><a class="permalink" href="perl5140delta.html#The-recursive-part-of-the-peephole-optimizer-is-now-hookable">#</a><a id="The"></a>The recursive part of the peephole optimizer is now hookable</h3>

<p>In addition to <code>PL_peepp</code>, for hooking into the toplevel peephole optimizer, a <code>PL_rpeepp</code> is now available to hook into the optimizer recursing into side-chains of the optree.</p>

<h3 id="New-non-magical-variants-of-existing-functions"><a class="permalink" href="perl5140delta.html#New-non-magical-variants-of-existing-functions">#</a><a id="New12"></a>New non-magical variants of existing functions</h3>

<p>The following functions/macros have been added to the API. The <code>*_nomg</code> macros are equivalent to their non-<code>_nomg</code> variants, except that they ignore get-magic. Those ending in <code>_flags</code> allow one to specify whether get-magic is processed.</p>

<pre><code class="plaintext">sv_2bool_flags
SvTRUE_nomg
sv_2nv_flags
SvNV_nomg
sv_cmp_flags
sv_cmp_locale_flags
sv_eq_flags
sv_collxfrm_flags</code></pre>

<p>In some of these cases, the non-<code>_flags</code> functions have been replaced with wrappers around the new functions.</p>

<h3 id="pv/pvs/sv-versions-of-existing-functions"><a class="permalink" href="perl5140delta.html#pv/pvs/sv-versions-of-existing-functions">#</a><a id="pv"></a><a id="pv-pvs-sv-versions-of-existing-functions"></a>pv/pvs/sv versions of existing functions</h3>

<p>Many functions ending with pvn now have equivalent <code>pv/pvs/sv</code> versions.</p>

<h3 id="List-op-building-functions"><a class="permalink" href="perl5140delta.html#List-op-building-functions">#</a><a id="List1"></a>List op-building functions</h3>

<p>List op-building functions have been added to the API. See <a href="perlapi.html#op_append_elem">op_append_elem</a>, <a href="perlapi.html#op_append_list">op_append_list</a>, and <a href="perlapi.html#op_prepend_elem">op_prepend_elem</a> in <a href="perlapi.html">perlapi</a>.</p>

<h3 id="LINKLIST"><a class="permalink" href="perl5140delta.html#LINKLIST">#</a><code>LINKLIST</code></h3>

<p>The <a href="perlapi.html#LINKLIST">LINKLIST</a> macro, part of op building that constructs the execution-order op chain, has been added to the API.</p>

<h3 id="Localisation-functions"><a class="permalink" href="perl5140delta.html#Localisation-functions">#</a><a id="Localisation"></a>Localisation functions</h3>

<p>The <code>save_freeop</code>, <code>save_op</code>, <code>save_pushi32ptr</code> and <code>save_pushptrptr</code> functions have been added to the API.</p>

<h3 id="Stash-names"><a class="permalink" href="perl5140delta.html#Stash-names">#</a><a id="Stash"></a>Stash names</h3>

<p>A stash can now have a list of effective names in addition to its usual name. The first effective name can be accessed via the <code>HvENAME</code> macro, which is now the recommended name to use in MRO linearisations (<code>HvNAME</code> being a fallback if there is no <code>HvENAME</code>).</p>

<p>These names are added and deleted via <code>hv_ename_add</code> and <code>hv_ename_delete</code>. These two functions are <i>not</i> part of the API.</p>

<h3 id="New-functions-for-finding-and-removing-magic"><a class="permalink" href="perl5140delta.html#New-functions-for-finding-and-removing-magic">#</a><a id="New13"></a>New functions for finding and removing magic</h3>

<p>The <a href="perlapi.html#mg_findext"><code>mg_findext()</code></a> and <a href="perlapi.html#sv_unmagicext"><code>sv_unmagicext()</code></a> functions have been added to the API. They allow extension authors to find and remove magic attached to scalars based on both the magic type and the magic virtual table, similar to how sv_magicext() attaches magic of a certain type and with a given virtual table to a scalar. This eliminates the need for extensions to walk the list of <code>MAGIC</code> pointers of an <code>SV</code> to find the magic that belongs to them.</p>

<h3 id="find_rundefsv"><a class="permalink" href="perl5140delta.html#find_rundefsv">#</a><code>find_rundefsv</code></h3>

<p>This function returns the SV representing <code>$_</code>, whether it&#39;s lexical or dynamic.</p>

<h3 id="Perl_croak_no_modify"><a class="permalink" href="perl5140delta.html#Perl_croak_no_modify">#</a><code>Perl_croak_no_modify</code></h3>

<p>Perl_croak_no_modify() is short-hand for <code>Perl_croak(&quot;%s&quot;, PL_no_modify)</code>.</p>

<h3 id="PERL_STATIC_INLINE-define"><a class="permalink" href="perl5140delta.html#PERL_STATIC_INLINE-define">#</a><a id="PERL_STATIC_INLINE"></a><code>PERL_STATIC_INLINE</code> define</h3>

<p>The <code>PERL_STATIC_INLINE</code> define has been added to provide the best-guess incantation to use for static inline functions, if the C compiler supports C99-style static inline. If it doesn&#39;t, it&#39;ll give a plain <code>static</code>.</p>

<p><code>HAS_STATIC_INLINE</code> can be used to check if the compiler actually supports inline functions.</p>

<h3 id="New-pv_escape-option-for-hexadecimal-escapes"><a class="permalink" href="perl5140delta.html#New-pv_escape-option-for-hexadecimal-escapes">#</a><a id="New14"></a>New <code>pv_escape</code> option for hexadecimal escapes</h3>

<p>A new option, <code>PERL_PV_ESCAPE_NONASCII</code>, has been added to <code>pv_escape</code> to dump all characters above ASCII in hexadecimal. Before, one could get all characters as hexadecimal or the Latin1 non-ASCII as octal.</p>

<h3 id="lex_start"><a class="permalink" href="perl5140delta.html#lex_start">#</a><code>lex_start</code></h3>

<p><code>lex_start</code> has been added to the API, but is considered experimental.</p>

<h3 id="op_scope()-and-op_lvalue()"><a class="permalink" href="perl5140delta.html#op_scope()-and-op_lvalue()">#</a><a id="op_scope"></a><a id="op_scope-and-op_lvalue"></a>op_scope() and op_lvalue()</h3>

<p>The op_scope() and op_lvalue() functions have been added to the API, but are considered experimental.</p>

<h2 id="C-API-Changes"><a class="permalink" href="perl5140delta.html#C-API-Changes">#</a><a id="C1"></a>C API Changes</h2>

<h3 id="PERL_POLLUTE-has-been-removed"><a class="permalink" href="perl5140delta.html#PERL_POLLUTE-has-been-removed">#</a><a id="PERL_POLLUTE"></a><code>PERL_POLLUTE</code> has been removed</h3>

<p>The option to define <code>PERL_POLLUTE</code> to expose older 5.005 symbols for backwards compatibility has been removed. Its use was always discouraged, and MakeMaker contains a more specific escape hatch:</p>

<pre><code class="plaintext">perl Makefile.PL POLLUTE=1</code></pre>

<p>This can be used for modules that have not been upgraded to 5.6 naming conventions (and really should be completely obsolete by now).</p>

<h3 id="Check-API-compatibility-when-loading-XS-modules"><a class="permalink" href="perl5140delta.html#Check-API-compatibility-when-loading-XS-modules">#</a><a id="Check"></a>Check API compatibility when loading XS modules</h3>

<p>When Perl&#39;s API changes in incompatible ways (which usually happens between major releases), XS modules compiled for previous versions of Perl will no longer work. They need to be recompiled against the new Perl.</p>

<p>The <code>XS_APIVERSION_BOOTCHECK</code> macro has been added to ensure that modules are recompiled and to prevent users from accidentally loading modules compiled for old perls into newer perls. That macro, which is called when loading every newly compiled extension, compares the API version of the running perl with the version a module has been compiled for and raises an exception if they don&#39;t match.</p>

<h3 id="Perl_fetch_cop_label"><a class="permalink" href="perl5140delta.html#Perl_fetch_cop_label">#</a>Perl_fetch_cop_label</h3>

<p>The first argument of the C API function <code>Perl_fetch_cop_label</code> has changed from <code>struct refcounted_he *</code> to <code>COP *</code>, to insulate the user from implementation details.</p>

<p>This API function was marked as &quot;may change&quot;, and likely isn&#39;t in use outside the core. (Neither an unpacked CPAN nor Google&#39;s codesearch finds any other references to it.)</p>

<h3 id="GvCV()-and-GvGP()-are-no-longer-lvalues"><a class="permalink" href="perl5140delta.html#GvCV()-and-GvGP()-are-no-longer-lvalues">#</a><a id="GvCV"></a><a id="GvCV-and-GvGP-are-no-longer-lvalues"></a>GvCV() and GvGP() are no longer lvalues</h3>

<p>The new GvCV_set() and GvGP_set() macros are now provided to replace assignment to those two macros.</p>

<p>This allows a future commit to eliminate some backref magic between GV and CVs, which will require complete control over assignment to the <code>gp_cv</code> slot.</p>

<h3 id="CvGV()-is-no-longer-an-lvalue"><a class="permalink" href="perl5140delta.html#CvGV()-is-no-longer-an-lvalue">#</a><a id="CvGV"></a><a id="CvGV-is-no-longer-an-lvalue"></a>CvGV() is no longer an lvalue</h3>

<p>Under some circumstances, the CvGV() field of a CV is now reference-counted. To ensure consistent behaviour, direct assignment to it, for example <code>CvGV(cv) = gv</code> is now a compile-time error. A new macro, <code>CvGV_set(cv,gv)</code> has been introduced to run this operation safely. Note that modification of this field is not part of the public API, regardless of this new macro (and despite its being listed in this section).</p>

<h3 id="CvSTASH()-is-no-longer-an-lvalue"><a class="permalink" href="perl5140delta.html#CvSTASH()-is-no-longer-an-lvalue">#</a><a id="CvSTASH"></a><a id="CvSTASH-is-no-longer-an-lvalue"></a>CvSTASH() is no longer an lvalue</h3>

<p>The CvSTASH() macro can now only be used as an rvalue. CvSTASH_set() has been added to replace assignment to CvSTASH(). This is to ensure that backreferences are handled properly. These macros are not part of the API.</p>

<h3 id="Calling-conventions-for-newFOROP-and-newWHILEOP"><a class="permalink" href="perl5140delta.html#Calling-conventions-for-newFOROP-and-newWHILEOP">#</a><a id="Calling"></a>Calling conventions for <code>newFOROP</code> and <code>newWHILEOP</code></h3>

<p>The way the parser handles labels has been cleaned up and refactored. As a result, the newFOROP() constructor function no longer takes a parameter stating what label is to go in the state op.</p>

<p>The newWHILEOP() and newFOROP() functions no longer accept a line number as a parameter.</p>

<h3 id="Flags-passed-to-uvuni_to_utf8_flags-and-utf8n_to_uvuni"><a class="permalink" href="perl5140delta.html#Flags-passed-to-uvuni_to_utf8_flags-and-utf8n_to_uvuni">#</a><a id="Flags"></a>Flags passed to <code>uvuni_to_utf8_flags</code> and <code>utf8n_to_uvuni</code></h3>

<p>Some of the flags parameters to uvuni_to_utf8_flags() and utf8n_to_uvuni() have changed. This is a result of Perl&#39;s now allowing internal storage and manipulation of code points that are problematic in some situations. Hence, the default actions for these functions has been complemented to allow these code points. The new flags are documented in <a href="perlapi.html">perlapi</a>. Code that requires the problematic code points to be rejected needs to change to use the new flags. Some flag names are retained for backward source compatibility, though they do nothing, as they are now the default. However the flags <code>UNICODE_ALLOW_FDD0</code>, <code>UNICODE_ALLOW_FFFF</code>, <code>UNICODE_ILLEGAL</code>, and <code>UNICODE_IS_ILLEGAL</code> have been removed, as they stem from a fundamentally broken model of how the Unicode non-character code points should be handled, which is now described in <a href="perlunicode.html#Non-character-code-points">&quot;Non-character code points&quot; in perlunicode</a>. See also the Unicode section under <a href="perl5140delta.html#Selected-Bug-Fixes">&quot;Selected Bug Fixes&quot;</a>.</p>

<h2 id="Deprecated-C-APIs"><a class="permalink" href="perl5140delta.html#Deprecated-C-APIs">#</a><a id="Deprecated1"></a>Deprecated C APIs</h2>

<dl>

<dt id="Perl_ptr_table_clear"><a class="permalink" href="perl5140delta.html#Perl_ptr_table_clear">#</a><code>Perl_ptr_table_clear</code></dt>
<dd>

<p><code>Perl_ptr_table_clear</code> is no longer part of Perl&#39;s public API. Calling it now generates a deprecation warning, and it will be removed in a future release.</p>

</dd>
<dt id="sv_compile_2op"><a class="permalink" href="perl5140delta.html#sv_compile_2op">#</a><code>sv_compile_2op</code></dt>
<dd>

<p>The sv_compile_2op() API function is now deprecated. Searches suggest that nothing on CPAN is using it, so this should have zero impact.</p>

<p>It attempted to provide an API to compile code down to an optree, but failed to bind correctly to lexicals in the enclosing scope. It&#39;s not possible to fix this problem within the constraints of its parameters and return value.</p>

</dd>
<dt id="find_rundefsvoffset"><a class="permalink" href="perl5140delta.html#find_rundefsvoffset">#</a><code>find_rundefsvoffset</code></dt>
<dd>

<p>The <code>find_rundefsvoffset</code> function has been deprecated. It appeared that its design was insufficient for reliably getting the lexical <code>$_</code> at run-time.</p>

<p>Use the new <code>find_rundefsv</code> function or the <code>UNDERBAR</code> macro instead. They directly return the right SV representing <code>$_</code>, whether it&#39;s lexical or dynamic.</p>

</dd>
<dt id="CALL_FPTR-and-CPERLscope"><a class="permalink" href="perl5140delta.html#CALL_FPTR-and-CPERLscope">#</a><a id="CALL_FPTR"></a><code>CALL_FPTR</code> and <code>CPERLscope</code></dt>
<dd>

<p>Those are left from an old implementation of <code>MULTIPLICITY</code> using C++ objects, which was removed in Perl 5.8. Nowadays these macros do exactly nothing, so they shouldn&#39;t be used anymore.</p>

<p>For compatibility, they are still defined for external <code>XS</code> code. Only extensions defining <code>PERL_CORE</code> must be updated now.</p>

</dd>
</dl>

<h2 id="Other-Internal-Changes"><a class="permalink" href="perl5140delta.html#Other-Internal-Changes">#</a><a id="Other1"></a>Other Internal Changes</h2>

<h3 id="Stack-unwinding"><a class="permalink" href="perl5140delta.html#Stack-unwinding">#</a><a id="Stack"></a>Stack unwinding</h3>

<p>The protocol for unwinding the C stack at the last stage of a <code>die</code> has changed how it identifies the target stack frame. This now uses a separate variable <code>PL_restartjmpenv</code>, where previously it relied on the <code>blk_eval.cur_top_env</code> pointer in the <code>eval</code> context frame that has nominally just been discarded. This change means that code running during various stages of Perl-level unwinding no longer needs to take care to avoid destroying the ghost frame.</p>

<h3 id="Scope-stack-entries"><a class="permalink" href="perl5140delta.html#Scope-stack-entries">#</a><a id="Scope1"></a>Scope stack entries</h3>

<p>The format of entries on the scope stack has been changed, resulting in a reduction of memory usage of about 10%. In particular, the memory used by the scope stack to record each active lexical variable has been halved.</p>

<h3 id="Memory-allocation-for-pointer-tables"><a class="permalink" href="perl5140delta.html#Memory-allocation-for-pointer-tables">#</a><a id="Memory2"></a>Memory allocation for pointer tables</h3>

<p>Memory allocation for pointer tables has been changed. Previously <code>Perl_ptr_table_store</code> allocated memory from the same arena system as <code>SV</code> bodies and <code>HE</code>s, with freed memory remaining bound to those arenas until interpreter exit. Now it allocates memory from arenas private to the specific pointer table, and that memory is returned to the system when <code>Perl_ptr_table_free</code> is called. Additionally, allocation and release are both less CPU intensive.</p>

<h3 id="UNDERBAR"><a class="permalink" href="perl5140delta.html#UNDERBAR">#</a><code>UNDERBAR</code></h3>

<p>The <code>UNDERBAR</code> macro now calls <code>find_rundefsv</code>. <code>dUNDERBAR</code> is now a noop but should still be used to ensure past and future compatibility.</p>

<h3 id="String-comparison-routines-renamed"><a class="permalink" href="perl5140delta.html#String-comparison-routines-renamed">#</a><a id="String1"></a>String comparison routines renamed</h3>

<p>The <code>ibcmp_*</code> functions have been renamed and are now called <code>foldEQ</code>, <code>foldEQ_locale</code>, and <code>foldEQ_utf8</code>. The old names are still available as macros.</p>

<h3 id="chop-and-chomp-implementations-merged"><a class="permalink" href="perl5140delta.html#chop-and-chomp-implementations-merged">#</a><a id="chop"></a><code>chop</code> and <code>chomp</code> implementations merged</h3>

<p>The opcode bodies for <code>chop</code> and <code>chomp</code> and for <code>schop</code> and <code>schomp</code> have been merged. The implementation functions Perl_do_chop() and Perl_do_chomp(), never part of the public API, have been merged and moved to a static function in <i>pp.c</i>. This shrinks the Perl binary slightly, and should not affect any code outside the core (unless it is relying on the order of side-effects when <code>chomp</code> is passed a <i>list</i> of values).</p>

<h1 id="Selected-Bug-Fixes"><a class="permalink" href="perl5140delta.html#Selected-Bug-Fixes">#</a><a id="Selected"></a>Selected Bug Fixes</h1>

<h2 id="I/O"><a class="permalink" href="perl5140delta.html#I/O">#</a><a id="I"></a><a id="I-O"></a>I/O</h2>

<ul>

<li><p>Perl no longer produces this warning:</p>

<pre><code>$ perl -we &#39;open(my $f, &quot;&gt;&quot;, \my $x); binmode($f, &quot;scalar&quot;)&#39;
Use of uninitialized value in binmode at -e line 1.</code></pre>

</li>
<li><p>Opening a glob reference via <code>open($fh, &quot;&gt;&quot;, \*glob)</code> no longer causes the glob to be corrupted when the filehandle is printed to. This would cause Perl to crash whenever the glob&#39;s contents were accessed [perl #77492].</p>

</li>
<li><p>PerlIO no longer crashes when called recursively, such as from a signal handler. Now it just leaks memory [perl #75556].</p>

</li>
<li><p>Most I/O functions were not warning for unopened handles unless the &quot;closed&quot; and &quot;unopened&quot; warnings categories were both enabled. Now only <code>use warnings &#39;unopened&#39;</code> is necessary to trigger these warnings, as had always been the intention.</p>

</li>
<li><p>There have been several fixes to PerlIO layers:</p>

<p>When <code>binmode(FH, &quot;:crlf&quot;)</code> pushes the <code>:crlf</code> layer on top of the stack, it no longer enables crlf layers lower in the stack so as to avoid unexpected results [perl #38456].</p>

<p>Opening a file in <code>:raw</code> mode now does what it advertises to do (first open the file, then <code>binmode</code> it), instead of simply leaving off the top layer [perl #80764].</p>

<p>The three layers <code>:pop</code>, <code>:utf8</code>, and <code>:bytes</code> didn&#39;t allow stacking when opening a file. For example this:</p>

<pre><code>open(FH, &quot;&gt;:pop:perlio&quot;, &quot;some.file&quot;) or die $!;</code></pre>

<p>would throw an &quot;Invalid argument&quot; error. This has been fixed in this release [perl #82484].</p>

</li>
</ul>

<h2 id="Regular-Expression-Bug-Fixes"><a class="permalink" href="perl5140delta.html#Regular-Expression-Bug-Fixes">#</a><a id="Regular5"></a>Regular Expression Bug Fixes</h2>

<ul>

<li><p>The regular expression engine no longer loops when matching <code>&quot;\N{LATIN SMALL LIGATURE FF}&quot; =~ /f+/i</code> and similar expressions [perl #72998] (5.12.1).</p>

</li>
<li><p>The trie runtime code should no longer allocate massive amounts of memory, fixing #74484.</p>

</li>
<li><p>Syntax errors in <code>(?{...})</code> blocks no longer cause panic messages [perl #2353].</p>

</li>
<li><p>A pattern like <code>(?:(o){2})?</code> no longer causes a &quot;panic&quot; error [perl #39233].</p>

</li>
<li><p>A fatal error in regular expressions containing <code>(.*?)</code> when processing UTF-8 data has been fixed [perl #75680] (5.12.2).</p>

</li>
<li><p>An erroneous regular expression engine optimisation that caused regex verbs like <code>*COMMIT</code> sometimes to be ignored has been removed.</p>

</li>
<li><p>The regular expression bracketed character class <code>[\8\9]</code> was effectively the same as <code>[89\000]</code>, incorrectly matching a NULL character. It also gave incorrect warnings that the <code>8</code> and <code>9</code> were ignored. Now <code>[\8\9]</code> is the same as <code>[89]</code> and gives legitimate warnings that <code>\8</code> and <code>\9</code> are unrecognized escape sequences, passed-through.</p>

</li>
<li><p>A regular expression match in the right-hand side of a global substitution (<code>s///g</code>) that is in the same scope will no longer cause match variables to have the wrong values on subsequent iterations. This can happen when an array or hash subscript is interpolated in the right-hand side, as in <code>s|(.)|@a{ print($1), /./ }|g</code> [perl #19078].</p>

</li>
<li><p>Several cases in which characters in the Latin-1 non-ASCII range (0x80 to 0xFF) used not to match themselves, or used to match both a character class and its complement, have been fixed. For instance, U+00E2 could match both <code>\w</code> and <code>\W</code> [perl #78464] [perl #18281] [perl #60156].</p>

</li>
<li><p>Matching a Unicode character against an alternation containing characters that happened to match continuation bytes in the former&#39;s UTF8 representation (like <code>qq{\x{30ab}} =~ /\xab|\xa9/</code>) would cause erroneous warnings [perl #70998].</p>

</li>
<li><p>The trie optimisation was not taking empty groups into account, preventing &quot;foo&quot; from matching <code>/\A(?:(?:)foo|bar|zot)\z/</code> [perl #78356].</p>

</li>
<li><p>A pattern containing a <code>+</code> inside a lookahead would sometimes cause an incorrect match failure in a global match (for example, <code>/(?=(\S+))/g</code>) [perl #68564].</p>

</li>
<li><p>A regular expression optimisation would sometimes cause a match with a <code>{n,m}</code> quantifier to fail when it should have matched [perl #79152].</p>

</li>
<li><p>Case-insensitive matching in regular expressions compiled under <code>use locale</code> now works much more sanely when the pattern or target string is internally encoded in UTF8. Previously, under these conditions the localeness was completely lost. Now, code points above 255 are treated as Unicode, but code points between 0 and 255 are treated using the current locale rules, regardless of whether the pattern or the string is encoded in UTF8. The few case-insensitive matches that cross the 255/256 boundary are not allowed. For example, 0xFF does not caselessly match the character at 0x178, LATIN CAPITAL LETTER Y WITH DIAERESIS, because 0xFF may not be LATIN SMALL LETTER Y in the current locale, and Perl has no way of knowing if that character even exists in the locale, much less what code point it is.</p>

</li>
<li><p>The <code>(?|...)</code> regular expression construct no longer crashes if the final branch has more sets of capturing parentheses than any other branch. This was fixed in Perl 5.10.1 for the case of a single branch, but that fix did not take multiple branches into account [perl #84746].</p>

</li>
<li><p>A bug has been fixed in the implementation of <code>{...}</code> quantifiers in regular expressions that prevented the code block in <code>/((\w+)(?{ print $2 })){2}/</code> from seeing the <code>$2</code> sometimes [perl #84294].</p>

</li>
</ul>

<h2 id="Syntax/Parsing-Bugs"><a class="permalink" href="perl5140delta.html#Syntax/Parsing-Bugs">#</a><a id="Syntax"></a><a id="Syntax-Parsing-Bugs"></a>Syntax/Parsing Bugs</h2>

<ul>

<li><p><code>when (scalar) {...}</code> no longer crashes, but produces a syntax error [perl #74114] (5.12.1).</p>

</li>
<li><p>A label right before a string eval (<code>foo: eval $string</code>) no longer causes the label to be associated also with the first statement inside the eval [perl #74290] (5.12.1).</p>

</li>
<li><p>The <code>no 5.13.2</code> form of <code>no</code> no longer tries to turn on features or pragmata (like <a href="strict.html">strict</a>) [perl #70075] (5.12.2).</p>

</li>
<li><p><code>BEGIN {require 5.12.0}</code> now behaves as documented, rather than behaving identically to <code>use 5.12.0</code>. Previously, <code>require</code> in a <code>BEGIN</code> block was erroneously executing the <code>use feature &#39;:5.12.0&#39;</code> and <code>use strict</code> behaviour, which only <code>use</code> was documented to provide [perl #69050].</p>

</li>
<li><p>A regression introduced in Perl 5.12.0, making <code>my $x = 3; $x = length(undef)</code> result in <code>$x</code> set to <code>3</code> has been fixed. <code>$x</code> will now be <code>undef</code> [perl #85508] (5.12.2).</p>

</li>
<li><p>When strict &quot;refs&quot; mode is off, <code>%{...}</code> in rvalue context returns <code>undef</code> if its argument is undefined. An optimisation introduced in Perl 5.12.0 to make <code>keys %{...}</code> faster when used as a boolean did not take this into account, causing <code>keys %{+undef}</code> (and <code>keys %$foo</code> when <code>$foo</code> is undefined) to be an error, which it should be so in strict mode only [perl #81750].</p>

</li>
<li><p>Constant-folding used to cause</p>

<pre><code>$text =~ ( 1 ? /phoo/ : /bear/)</code></pre>

<p>to turn into</p>

<pre><code>$text =~ /phoo/</code></pre>

<p>at compile time. Now it correctly matches against <code>$_</code> [perl #20444].</p>

</li>
<li><p>Parsing Perl code (either with string <code>eval</code> or by loading modules) from within a <code>UNITCHECK</code> block no longer causes the interpreter to crash [perl #70614].</p>

</li>
<li><p>String <code>eval</code>s no longer fail after 2 billion scopes have been compiled [perl #83364].</p>

</li>
<li><p>The parser no longer hangs when encountering certain Unicode characters, such as U+387 [perl #74022].</p>

</li>
<li><p>Defining a constant with the same name as one of Perl&#39;s special blocks (like <code>INIT</code>) stopped working in 5.12.0, but has now been fixed [perl #78634].</p>

</li>
<li><p>A reference to a literal value used as a hash key (<code>$hash{\&quot;foo&quot;}</code>) used to be stringified, even if the hash was tied [perl #79178].</p>

</li>
<li><p>A closure containing an <code>if</code> statement followed by a constant or variable is no longer treated as a constant [perl #63540].</p>

</li>
<li><p><code>state</code> can now be used with attributes. It used to mean the same thing as <code>my</code> if any attributes were present [perl #68658].</p>

</li>
<li><p>Expressions like <code>@$a &gt; 3</code> no longer cause <code>$a</code> to be mentioned in the &quot;Use of uninitialized value in numeric gt&quot; warning when <code>$a</code> is undefined (since it is not part of the <code>&gt;</code> expression, but the operand of the <code>@</code>) [perl #72090].</p>

</li>
<li><p>Accessing an element of a package array with a hard-coded number (as opposed to an arbitrary expression) would crash if the array did not exist. Usually the array would be autovivified during compilation, but typeglob manipulation could remove it, as in these two cases which used to crash:</p>

<pre><code>*d = *a;  print $d[0];
undef *d; print $d[0];</code></pre>

</li>
<li><p>The <b>-C</b> command-line option, when used on the shebang line, can now be followed by other options [perl #72434].</p>

</li>
<li><p>The <code>B</code> module was returning <code>B::OP</code>s instead of <code>B::LOGOP</code>s for <code>entertry</code> [perl #80622]. This was due to a bug in the Perl core, not in <code>B</code> itself.</p>

</li>
</ul>

<h2 id="Stashes,-Globs-and-Method-Lookup"><a class="permalink" href="perl5140delta.html#Stashes,-Globs-and-Method-Lookup">#</a><a id="Stashes2"></a><a id="Stashes-Globs-and-Method-Lookup"></a>Stashes, Globs and Method Lookup</h2>

<p>Perl 5.10.0 introduced a new internal mechanism for caching MROs (method resolution orders, or lists of parent classes; aka &quot;isa&quot; caches) to make method lookup faster (so <code>@ISA</code> arrays would not have to be searched repeatedly). Unfortunately, this brought with it quite a few bugs. Almost all of these have been fixed now, along with a few MRO-related bugs that existed before 5.10.0:</p>

<ul>

<li><p>The following used to have erratic effects on method resolution, because the &quot;isa&quot; caches were not reset or otherwise ended up listing the wrong classes. These have been fixed.</p>

<dl>

<dt id="Aliasing-packages-by-assigning-to-globs-[perl-#77358]"><a class="permalink" href="perl5140delta.html#Aliasing-packages-by-assigning-to-globs-%5Bperl-%2377358%5D">#</a><a id="Aliasing"></a><a id="Aliasing-packages-by-assigning-to-globs-perl-77358"></a>Aliasing packages by assigning to globs [perl #77358]</dt>
<dd>

</dd>
<dt id="Deleting-packages-by-deleting-their-containing-stash-elements"><a class="permalink" href="perl5140delta.html#Deleting-packages-by-deleting-their-containing-stash-elements">#</a><a id="Deleting"></a>Deleting packages by deleting their containing stash elements</dt>
<dd>

</dd>
<dt id="Undefining-the-glob-containing-a-package-(undef-*Foo::)"><a class="permalink" href="perl5140delta.html#Undefining-the-glob-containing-a-package-(undef-*Foo::)">#</a><a id="Undefining"></a><a id="Undefining-the-glob-containing-a-package-undef-Foo"></a>Undefining the glob containing a package (<code>undef *Foo::</code>)</dt>
<dd>

</dd>
<dt id="Undefining-an-ISA-glob-(undef-*Foo::ISA)"><a class="permalink" href="perl5140delta.html#Undefining-an-ISA-glob-(undef-*Foo::ISA)">#</a><a id="Undefining1"></a><a id="Undefining-an-ISA-glob-undef-Foo::ISA"></a>Undefining an ISA glob (<code>undef *Foo::ISA</code>)</dt>
<dd>

</dd>
<dt id="Deleting-an-ISA-stash-element-(delete-$Foo::{ISA})"><a class="permalink" href="perl5140delta.html#Deleting-an-ISA-stash-element-(delete-$Foo::%7BISA%7D)">#</a><a id="Deleting1"></a><a id="Deleting-an-ISA-stash-element-delete-Foo::-ISA"></a>Deleting an ISA stash element (<code>delete $Foo::{ISA}</code>)</dt>
<dd>

</dd>
<dt id="Sharing-@ISA-arrays-between-classes-(via-*Foo::ISA-=-\@Bar::ISA-or-*Foo::ISA-=-*Bar::ISA)-[perl-#77238]"><a class="permalink" href="perl5140delta.html#Sharing-@ISA-arrays-between-classes-(via-*Foo::ISA-=-%5C@Bar::ISA-or-*Foo::ISA-=-*Bar::ISA)-%5Bperl-%2377238%5D">#</a><a id="Sharing"></a><a id="Sharing-ISA-arrays-between-classes-via-Foo::ISA-Bar::ISA-or-Foo::ISA-Bar::ISA-perl-77238"></a>Sharing @ISA arrays between classes (via <code>*Foo::ISA = \@Bar::ISA</code> or <code>*Foo::ISA = *Bar::ISA</code>) [perl #77238]</dt>
<dd>

</dd>
</dl>

<p><code>undef *Foo::ISA</code> would even stop a new <code>@Foo::ISA</code> array from updating caches.</p>

</li>
<li><p>Typeglob assignments would crash if the glob&#39;s stash no longer existed, so long as the glob assigned to were named <code>ISA</code> or the glob on either side of the assignment contained a subroutine.</p>

</li>
<li><p><code>PL_isarev</code>, which is accessible to Perl via <code>mro::get_isarev</code> is now updated properly when packages are deleted or removed from the <code>@ISA</code> of other classes. This allows many packages to be created and deleted without causing a memory leak [perl #75176].</p>

</li>
</ul>

<p>In addition, various other bugs related to typeglobs and stashes have been fixed:</p>

<ul>

<li><p>Some work has been done on the internal pointers that link between symbol tables (stashes), typeglobs, and subroutines. This has the effect that various edge cases related to deleting stashes or stash entries (for example, &lt;%FOO:: = ()&gt;), and complex typeglob or code-reference aliasing, will no longer crash the interpreter.</p>

</li>
<li><p>Assigning a reference to a glob copy now assigns to a glob slot instead of overwriting the glob with a scalar [perl #1804] [perl #77508].</p>

</li>
<li><p>A bug when replacing the glob of a loop variable within the loop has been fixed [perl #21469]. This means the following code will no longer crash:</p>

<pre><code>for $x (...) {
    *x = *y;
}</code></pre>

</li>
<li><p>Assigning a glob to a PVLV used to convert it to a plain string. Now it works correctly, and a PVLV can hold a glob. This would happen when a nonexistent hash or array element was passed to a subroutine:</p>

<pre><code>sub { $_[0] = *foo }-&gt;($hash{key});
# $_[0] would have been the string &quot;*main::foo&quot;</code></pre>

<p>It also happened when a glob was assigned to, or returned from, an element of a tied array or hash [perl #36051].</p>

</li>
<li><p>When trying to report <code>Use of uninitialized value $Foo::BAR</code>, crashes could occur if the glob holding the global variable in question had been detached from its original stash by, for example, <code>delete $::{&quot;Foo::&quot;}</code>. This has been fixed by disabling the reporting of variable names in those cases.</p>

</li>
<li><p>During the restoration of a localised typeglob on scope exit, any destructors called as a result would be able to see the typeglob in an inconsistent state, containing freed entries, which could result in a crash. This would affect code like this:</p>

<pre><code>local *@;
eval { die bless [] }; # puts an object in $@
sub DESTROY {
  local $@; # boom
}</code></pre>

<p>Now the glob entries are cleared before any destructors are called. This also means that destructors can vivify entries in the glob. So Perl tries again and, if the entries are re-created too many times, dies with a &quot;panic: gp_free ...&quot; error message.</p>

</li>
<li><p>If a typeglob is freed while a subroutine attached to it is still referenced elsewhere, the subroutine is renamed to <code>__ANON__</code> in the same package, unless the package has been undefined, in which case the <code>__ANON__</code> package is used. This could cause packages to be sometimes autovivified, such as if the package had been deleted. Now this no longer occurs. The <code>__ANON__</code> package is also now used when the original package is no longer attached to the symbol table. This avoids memory leaks in some cases [perl #87664].</p>

</li>
<li><p>Subroutines and package variables inside a package whose name ends with <code>::</code> can now be accessed with a fully qualified name.</p>

</li>
</ul>

<h2 id="Unicode1"><a class="permalink" href="perl5140delta.html#Unicode1">#</a>Unicode</h2>

<ul>

<li><p>What has become known as &quot;the Unicode Bug&quot; is almost completely resolved in this release. Under <code>use feature &#39;unicode_strings&#39;</code> (which is automatically selected by <code>use 5.012</code> and above), the internal storage format of a string no longer affects the external semantics. [perl #58182].</p>

<p>There are two known exceptions:</p>

<ol>

<li><p>The now-deprecated, user-defined case-changing functions require utf8-encoded strings to operate. The CPAN module <a href="./Unicode::Casing.html">Unicode::Casing</a> has been written to replace this feature without its drawbacks, and the feature is scheduled to be removed in 5.16.</p>

</li>
<li><p>quotemeta() (and its in-line equivalent <code>\Q</code>) can also give different results depending on whether a string is encoded in UTF-8. See <a href="perlunicode.html#The-%22Unicode-Bug%22">&quot;The &quot;Unicode Bug&quot;&quot; in perlunicode</a>.</p>

</li>
</ol>

</li>
<li><p>Handling of Unicode non-character code points has changed. Previously they were mostly considered illegal, except that in some place only one of the 66 of them was known. The Unicode Standard considers them all legal, but forbids their &quot;open interchange&quot;. This is part of the change to allow internal use of any code point (see <a href="perl5140delta.html#Core-Enhancements">&quot;Core Enhancements&quot;</a>). Together, these changes resolve [perl #38722], [perl #51918], [perl #51936], and [perl #63446].</p>

</li>
<li><p>Case-insensitive <code>&quot;/i&quot;</code> regular expression matching of Unicode characters that match multiple characters now works much more as intended. For example</p>

<pre><code class="plaintext">&quot;\N{LATIN SMALL LIGATURE FFI}&quot; =~ /ffi/ui</code></pre>

<p>and</p>

<pre><code class="plaintext">&quot;ffi&quot; =~ /\N{LATIN SMALL LIGATURE FFI}/ui</code></pre>

<p>are both true. Previously, there were many bugs with this feature. What hasn&#39;t been fixed are the places where the pattern contains the multiple characters, but the characters are split up by other things, such as in</p>

<pre><code class="plaintext">&quot;\N{LATIN SMALL LIGATURE FFI}&quot; =~ /(f)(f)i/ui</code></pre>

<p>or</p>

<pre><code class="plaintext">&quot;\N{LATIN SMALL LIGATURE FFI}&quot; =~ /ffi*/ui</code></pre>

<p>or</p>

<pre><code class="plaintext">&quot;\N{LATIN SMALL LIGATURE FFI}&quot; =~ /[a-f][f-m][g-z]/ui</code></pre>

<p>None of these match.</p>

<p>Also, this matching doesn&#39;t fully conform to the current Unicode Standard, which asks that the matching be made upon the NFD (Normalization Form Decomposed) of the text. However, as of this writing (April 2010), the Unicode Standard is currently in flux about what they will recommend doing with regard in such scenarios. It may be that they will throw out the whole concept of multi-character matches. [perl #71736].</p>

</li>
<li><p>Naming a deprecated character in <code>\N{<i>NAME</i>}</code> no longer leaks memory.</p>

</li>
<li><p>We fixed a bug that could cause <code>\N{<i>NAME</i>}</code> constructs followed by a single <code>&quot;.&quot;</code> to be parsed incorrectly [perl #74978] (5.12.1).</p>

</li>
<li><p><code>chop</code> now correctly handles characters above <code>&quot;\x{7fffffff}&quot;</code> [perl #73246].</p>

</li>
<li><p>Passing to <code>index</code> an offset beyond the end of the string when the string is encoded internally in UTF8 no longer causes panics [perl #75898].</p>

</li>
<li><p>warn() and die() now respect utf8-encoded scalars [perl #45549].</p>

</li>
<li><p>Sometimes the UTF8 length cache would not be reset on a value returned by substr, causing <code>length(substr($uni_string, ...))</code> to give wrong answers. With <code>${^UTF8CACHE}</code> set to -1, it would also produce a &quot;panic&quot; error message [perl #77692].</p>

</li>
</ul>

<h2 id="Ties,-Overloading-and-Other-Magic"><a class="permalink" href="perl5140delta.html#Ties,-Overloading-and-Other-Magic">#</a><a id="Ties"></a><a id="Ties-Overloading-and-Other-Magic"></a>Ties, Overloading and Other Magic</h2>

<ul>

<li><p>Overloading now works properly in conjunction with tied variables. What formerly happened was that most ops checked their arguments for overloading <i>before</i> checking for magic, so for example an overloaded object returned by a tied array access would usually be treated as not overloaded [RT #57012].</p>

</li>
<li><p>Various instances of magic (like tie methods) being called on tied variables too many or too few times have been fixed:</p>

<ul>

<li><p><code>$tied-&gt;()</code> did not always call FETCH [perl #8438].</p>

</li>
<li><p>Filetest operators and <code>y///</code> and <code>tr///</code> were calling FETCH too many times.</p>

</li>
<li><p>The <code>=</code> operator used to ignore magic on its right-hand side if the scalar happened to hold a typeglob (if a typeglob was the last thing returned from or assigned to a tied scalar) [perl #77498].</p>

</li>
<li><p>Dereference operators used to ignore magic if the argument was a reference already (such as from a previous FETCH) [perl #72144].</p>

</li>
<li><p><code>splice</code> now calls set-magic (so changes made by <code>splice @ISA</code> are respected by method calls) [perl #78400].</p>

</li>
<li><p>In-memory files created by <code>open($fh, &quot;&gt;&quot;, \$buffer)</code> were not calling FETCH/STORE at all [perl #43789] (5.12.2).</p>

</li>
<li><p>utf8::is_utf8() now respects get-magic (like <code>$1</code>) (5.12.1).</p>

</li>
</ul>

</li>
<li><p>Non-commutative binary operators used to swap their operands if the same tied scalar was used for both operands and returned a different value for each FETCH. For instance, if <code>$t</code> returned 2 the first time and 3 the second, then <code>$t/$t</code> would evaluate to 1.5. This has been fixed [perl #87708].</p>

</li>
<li><p>String <code>eval</code> now detects taintedness of overloaded or tied arguments [perl #75716].</p>

</li>
<li><p>String <code>eval</code> and regular expression matches against objects with string overloading no longer cause memory corruption or crashes [perl #77084].</p>

</li>
<li><p><a href="perlfunc.html#readline-EXPR">readline</a> now honors <code>&lt;&gt;</code> overloading on tied arguments.</p>

</li>
<li><p><code>&lt;expr&gt;</code> always respects overloading now if the expression is overloaded.</p>

<p>Because &quot;<span style="white-space: nowrap;">&lt;&gt; as</span> glob&quot; was parsed differently from &quot;<span style="white-space: nowrap;">&lt;&gt; as</span> filehandle&quot; from 5.6 onwards, something like <code>&lt;$foo[0]&gt;</code> did not handle overloading, even if <code>$foo[0]</code> was an overloaded object. This was contrary to the documentation for <a href="overload.html">overload</a>, and meant that <code>&lt;&gt;</code> could not be used as a general overloaded iterator operator.</p>

</li>
<li><p>The fallback behaviour of overloading on binary operators was asymmetric [perl #71286].</p>

</li>
<li><p>Magic applied to variables in the main package no longer affects other packages. See <a href="perl5140delta.html#Magic-variables-outside-the-main-package">&quot;Magic variables outside the main package&quot;</a> above [perl #76138].</p>

</li>
<li><p>Sometimes magic (ties, taintedness, etc.) attached to variables could cause an object to last longer than it should, or cause a crash if a tied variable were freed from within a tie method. These have been fixed [perl #81230].</p>

</li>
<li><p>DESTROY methods of objects implementing ties are no longer able to crash by accessing the tied variable through a weak reference [perl #86328].</p>

</li>
<li><p>Fixed a regression of kill() when a match variable is used for the process ID to kill [perl #75812].</p>

</li>
<li><p><code>$AUTOLOAD</code> used to remain tainted forever if it ever became tainted. Now it is correctly untainted if an autoloaded method is called and the method name was not tainted.</p>

</li>
<li><p><code>sprintf</code> now dies when passed a tainted scalar for the format. It did already die for arbitrary expressions, but not for simple scalars [perl #82250].</p>

</li>
<li><p><code>lc</code>, <code>uc</code>, <code>lcfirst</code>, and <code>ucfirst</code> no longer return untainted strings when the argument is tainted. This has been broken since perl 5.8.9 [perl #87336].</p>

</li>
</ul>

<h2 id="The-Debugger"><a class="permalink" href="perl5140delta.html#The-Debugger">#</a><a id="The1"></a>The Debugger</h2>

<ul>

<li><p>The Perl debugger now also works in taint mode [perl #76872].</p>

</li>
<li><p>Subroutine redefinition works once more in the debugger [perl #48332].</p>

</li>
<li><p>When <b>-d</b> is used on the shebang (<code>#!</code>) line, the debugger now has access to the lines of the main program. In the past, this sometimes worked and sometimes did not, depending on the order in which things happened to be arranged in memory [perl #71806].</p>

</li>
<li><p>A possible memory leak when using <a href="perlfunc.html#caller-EXPR">caller()</a> to set <code>@DB::args</code> has been fixed (5.12.2).</p>

</li>
<li><p>Perl no longer stomps on <code>$DB::single</code>, <code>$DB::trace</code>, and <code>$DB::signal</code> if these variables already have values when <code>$^P</code> is assigned to [perl #72422].</p>

</li>
<li><p><code>#line</code> directives in string evals were not properly updating the arrays of lines of code (<code>@{&quot;_&lt; ...&quot;}</code>) that the debugger (or any debugging or profiling module) uses. In threaded builds, they were not being updated at all. In non-threaded builds, the line number was ignored, so any change to the existing line number would cause the lines to be misnumbered [perl #79442].</p>

</li>
</ul>

<h2 id="Threads"><a class="permalink" href="perl5140delta.html#Threads">#</a>Threads</h2>

<ul>

<li><p>Perl no longer accidentally clones lexicals in scope within active stack frames in the parent when creating a child thread [perl #73086].</p>

</li>
<li><p>Several memory leaks in cloning and freeing threaded Perl interpreters have been fixed [perl #77352].</p>

</li>
<li><p>Creating a new thread when directory handles were open used to cause a crash, because the handles were not cloned, but simply passed to the new thread, resulting in a double free.</p>

<p>Now directory handles are cloned properly on Windows and on systems that have a <code>fchdir</code> function. On other systems, new threads simply do not inherit directory handles from their parent threads [perl #75154].</p>

</li>
<li><p>The typeglob <code>*,</code>, which holds the scalar variable <code>$,</code> (output field separator), had the wrong reference count in child threads.</p>

</li>
<li><p>[perl #78494] When pipes are shared between threads, the <code>close</code> function (and any implicit close, such as on thread exit) no longer blocks.</p>

</li>
<li><p>Perl now does a timely cleanup of SVs that are cloned into a new thread but then discovered to be orphaned (that is, their owners are <i>not</i> cloned). This eliminates several &quot;scalars leaked&quot; warnings when joining threads.</p>

</li>
</ul>

<h2 id="Scoping-and-Subroutines"><a class="permalink" href="perl5140delta.html#Scoping-and-Subroutines">#</a><a id="Scoping"></a>Scoping and Subroutines</h2>

<ul>

<li><p>Lvalue subroutines are again able to return copy-on-write scalars. This had been broken since version 5.10.0 [perl #75656] (5.12.3).</p>

</li>
<li><p><code>require</code> no longer causes <code>caller</code> to return the wrong file name for the scope that called <code>require</code> and other scopes higher up that had the same file name [perl #68712].</p>

</li>
<li><p><code>sort</code> with a <code>($$)</code>-prototyped comparison routine used to cause the value of <code>@_</code> to leak out of the sort. Taking a reference to <code>@_</code> within the sorting routine could cause a crash [perl #72334].</p>

</li>
<li><p>Match variables (like <code>$1</code>) no longer persist between calls to a sort subroutine [perl #76026].</p>

</li>
<li><p>Iterating with <code>foreach</code> over an array returned by an lvalue sub now works [perl #23790].</p>

</li>
<li><p><code>$@</code> is now localised during calls to <code>binmode</code> to prevent action at a distance [perl #78844].</p>

</li>
<li><p>Calling a closure prototype (what is passed to an attribute handler for a closure) now results in a &quot;Closure prototype called&quot; error message instead of a crash [perl #68560].</p>

</li>
<li><p>Mentioning a read-only lexical variable from the enclosing scope in a string <code>eval</code> no longer causes the variable to become writable [perl #19135].</p>

</li>
</ul>

<h2 id="Signals"><a class="permalink" href="perl5140delta.html#Signals">#</a>Signals</h2>

<ul>

<li><p>Within signal handlers, <code>$!</code> is now implicitly localized.</p>

</li>
<li><p>CHLD signals are no longer unblocked after a signal handler is called if they were blocked before by <code>POSIX::sigprocmask</code> [perl #82040].</p>

</li>
<li><p>A signal handler called within a signal handler could cause leaks or double-frees. Now fixed [perl #76248].</p>

</li>
</ul>

<h2 id="Miscellaneous-Memory-Leaks"><a class="permalink" href="perl5140delta.html#Miscellaneous-Memory-Leaks">#</a><a id="Miscellaneous"></a>Miscellaneous Memory Leaks</h2>

<ul>

<li><p>Several memory leaks when loading XS modules were fixed (5.12.2).</p>

</li>
<li><p><a href="perlfunc.html#substr-EXPR%2COFFSET%2CLENGTH%2CREPLACEMENT">substr()</a>, <a href="perlfunc.html#index-STR%2CSUBSTR%2CPOSITION">pos()</a>, <a href="perlfunc.html#keys-HASH">keys()</a>, and <a href="perlfunc.html#vec-EXPR%2COFFSET%2CBITS">vec()</a> could, when used in combination with lvalues, result in leaking the scalar value they operate on, and cause its destruction to happen too late. This has now been fixed.</p>

</li>
<li><p>The postincrement and postdecrement operators, <code>++</code> and <code>--</code>, used to cause leaks when used on references. This has now been fixed.</p>

</li>
<li><p>Nested <code>map</code> and <code>grep</code> blocks no longer leak memory when processing large lists [perl #48004].</p>

</li>
<li><p><code>use <i>VERSION</i></code> and <code>no <i>VERSION</i></code> no longer leak memory [perl #78436] [perl #69050].</p>

</li>
<li><p><code>.=</code> followed by <code>&lt;&gt;</code> or <code>readline</code> would leak memory if <code>$/</code> contained characters beyond the octet range and the scalar assigned to happened to be encoded as UTF8 internally [perl #72246].</p>

</li>
<li><p><code>eval &#39;BEGIN{die}&#39;</code> no longer leaks memory on non-threaded builds.</p>

</li>
</ul>

<h2 id="Memory-Corruption-and-Crashes"><a class="permalink" href="perl5140delta.html#Memory-Corruption-and-Crashes">#</a><a id="Memory3"></a>Memory Corruption and Crashes</h2>

<ul>

<li><p>glob() no longer crashes when <code>%File::Glob::</code> is empty and <code>CORE::GLOBAL::glob</code> isn&#39;t present [perl #75464] (5.12.2).</p>

</li>
<li><p>readline() has been fixed when interrupted by signals so it no longer returns the &quot;same thing&quot; as before or random memory.</p>

</li>
<li><p>When assigning a list with duplicated keys to a hash, the assignment used to return garbage and/or freed values:</p>

<pre><code>@a = %h = (list with some duplicate keys);</code></pre>

<p>This has now been fixed [perl #31865].</p>

</li>
<li><p>The mechanism for freeing objects in globs used to leave dangling pointers to freed SVs, meaning Perl users could see corrupted state during destruction.</p>

<p>Perl now frees only the affected slots of the GV, rather than freeing the GV itself. This makes sure that there are no dangling refs or corrupted state during destruction.</p>

</li>
<li><p>The interpreter no longer crashes when freeing deeply-nested arrays of arrays. Hashes have not been fixed yet [perl #44225].</p>

</li>
<li><p>Concatenating long strings under <code>use encoding</code> no longer causes Perl to crash [perl #78674].</p>

</li>
<li><p>Calling <code>-&gt;import</code> on a class lacking an import method could corrupt the stack, resulting in strange behaviour. For instance,</p>

<pre><code>push @a, &quot;foo&quot;, $b = bar-&gt;import;</code></pre>

<p>would assign &quot;foo&quot; to <code>$b</code> [perl #63790].</p>

</li>
<li><p>The <code>recv</code> function could crash when called with the MSG_TRUNC flag [perl #75082].</p>

</li>
<li><p><code>formline</code> no longer crashes when passed a tainted format picture. It also taints <code>$^A</code> now if its arguments are tainted [perl #79138].</p>

</li>
<li><p>A bug in how we process filetest operations could cause a segfault. Filetests don&#39;t always expect an op on the stack, so we now use TOPs only if we&#39;re sure that we&#39;re not <code>stat</code>ing the <code>_</code> filehandle. This is indicated by <code>OPf_KIDS</code> (as checked in ck_ftst) [perl #74542] (5.12.1).</p>

</li>
<li><p>unpack() now handles scalar context correctly for <code>%32H</code> and <code>%32u</code>, fixing a potential crash. split() would crash because the third item on the stack wasn&#39;t the regular expression it expected. <code>unpack(&quot;%2H&quot;, ...)</code> would return both the unpacked result and the checksum on the stack, as would <code>unpack(&quot;%2u&quot;, ...)</code> [perl #73814] (5.12.2).</p>

</li>
</ul>

<h2 id="Fixes-to-Various-Perl-Operators"><a class="permalink" href="perl5140delta.html#Fixes-to-Various-Perl-Operators">#</a><a id="Fixes"></a>Fixes to Various Perl Operators</h2>

<ul>

<li><p>The <code>&amp;</code>, <code>|</code>, and <code>^</code> bitwise operators no longer coerce read-only arguments [perl #20661].</p>

</li>
<li><p>Stringifying a scalar containing &quot;-0.0&quot; no longer has the effect of turning false into true [perl #45133].</p>

</li>
<li><p>Some numeric operators were converting integers to floating point, resulting in loss of precision on 64-bit platforms [perl #77456].</p>

</li>
<li><p>sprintf() was ignoring locales when called with constant arguments [perl #78632].</p>

</li>
<li><p>Combining the vector (<code>%v</code>) flag and dynamic precision would cause <code>sprintf</code> to confuse the order of its arguments, making it treat the string as the precision and vice-versa [perl #83194].</p>

</li>
</ul>

<h2 id="Bugs-Relating-to-the-C-API"><a class="permalink" href="perl5140delta.html#Bugs-Relating-to-the-C-API">#</a><a id="Bugs"></a>Bugs Relating to the C API</h2>

<ul>

<li><p>The C-level <code>lex_stuff_pvn</code> function would sometimes cause a spurious syntax error on the last line of the file if it lacked a final semicolon [perl #74006] (5.12.1).</p>

</li>
<li><p>The <code>eval_sv</code> and <code>eval_pv</code> C functions now set <code>$@</code> correctly when there is a syntax error and no <code>G_KEEPERR</code> flag, and never set it if the <code>G_KEEPERR</code> flag is present [perl #3719].</p>

</li>
<li><p>The XS multicall API no longer causes subroutines to lose reference counts if called via the multicall interface from within those very subroutines. This affects modules like <a href="./List::Util.html">List::Util</a>. Calling one of its functions with an active subroutine as the first argument could cause a crash [perl #78070].</p>

</li>
<li><p>The <code>SvPVbyte</code> function available to XS modules now calls magic before downgrading the SV, to avoid warnings about wide characters [perl #72398].</p>

</li>
<li><p>The ref types in the typemap for XS bindings now support magical variables [perl #72684].</p>

</li>
<li><p><code>sv_catsv_flags</code> no longer calls <code>mg_get</code> on its second argument (the source string) if the flags passed to it do not include SV_GMAGIC. So it now matches the documentation.</p>

</li>
<li><p><code>my_strftime</code> no longer leaks memory. This fixes a memory leak in <code>POSIX::strftime</code> [perl #73520].</p>

</li>
<li><p><i>XSUB.h</i> now correctly redefines fgets under PERL_IMPLICIT_SYS [perl #55049] (5.12.1).</p>

</li>
<li><p>XS code using fputc() or fputs() on Windows could cause an error due to their arguments being swapped [perl #72704] (5.12.1).</p>

</li>
<li><p>A possible segfault in the <code>T_PTROBJ</code> default typemap has been fixed (5.12.2).</p>

</li>
<li><p>A bug that could cause &quot;Unknown error&quot; messages when <code>call_sv(code, G_EVAL)</code> is called from an XS destructor has been fixed (5.12.2).</p>

</li>
</ul>

<h1 id="Known-Problems"><a class="permalink" href="perl5140delta.html#Known-Problems">#</a><a id="Known"></a>Known Problems</h1>

<p>This is a list of significant unresolved issues which are regressions from earlier versions of Perl or which affect widely-used CPAN modules.</p>

<ul>

<li><p><code>List::Util::first</code> misbehaves in the presence of a lexical <code>$_</code> (typically introduced by <code>my $_</code> or implicitly by <code>given</code>). The variable that gets set for each iteration is the package variable <code>$_</code>, not the lexical <code>$_</code>.</p>

<p>A similar issue may occur in other modules that provide functions which take a block as their first argument, like</p>

<pre><code>foo { ... $_ ...} list</code></pre>

<p>See also: <a href="https://github.com/Perl/perl5/issues/9798">https://github.com/Perl/perl5/issues/9798</a></p>

</li>
<li><p>readline() returns an empty string instead of a cached previous value when it is interrupted by a signal</p>

</li>
<li><p>The changes in prototype handling break <a href="Switch.html">Switch</a>. A patch has been sent upstream and will hopefully appear on CPAN soon.</p>

</li>
<li><p>The upgrade to <i>ExtUtils-MakeMaker-6.57_05</i> has caused some tests in the <i>Module-Install</i> distribution on CPAN to fail. (Specifically, <i>02_mymeta.t</i> tests 5 and 21; <i>18_all_from.t</i> tests 6 and 15; <i>19_authors.t</i> tests 5, 13, 21, and 29; and <i>20_authors_with_special_characters.t</i> tests 6, 15, and 23 in version 1.00 of that distribution now fail.)</p>

</li>
<li><p>On VMS, <code>Time::HiRes</code> tests will fail due to a bug in the CRTL&#39;s implementation of <code>setitimer</code>: previous timer values would be cleared if a timer expired but not if the timer was reset before expiring. HP OpenVMS Engineering have corrected the problem and will release a patch in due course (Quix case # QXCM1001115136).</p>

</li>
<li><p>On VMS, there were a handful of <code>Module::Build</code> test failures we didn&#39;t get to before the release; please watch CPAN for updates.</p>

</li>
</ul>

<h1 id="Errata"><a class="permalink" href="perl5140delta.html#Errata">#</a>Errata</h1>

<h2 id="keys(),-values(),-and-each()-work-on-arrays"><a class="permalink" href="perl5140delta.html#keys(),-values(),-and-each()-work-on-arrays">#</a><a id="keys"></a><a id="keys-values-and-each-work-on-arrays"></a>keys(), values(), and each() work on arrays</h2>

<p>You can now use the keys(), values(), and each() builtins on arrays; previously you could use them only on hashes. See <a href="perlfunc.html">perlfunc</a> for details. This is actually a change introduced in perl 5.12.0, but it was missed from that release&#39;s <a href="perl5120delta.html">perl5120delta</a>.</p>

<h2 id="split()-and-@_"><a class="permalink" href="perl5140delta.html#split()-and-@_">#</a><a id="split"></a><a id="split-and-_"></a>split() and <code>@_</code></h2>

<p>split() no longer modifies <code>@_</code> when called in scalar or void context. In void context it now produces a &quot;Useless use of split&quot; warning. This was also a perl 5.12.0 change that missed the perldelta.</p>

<h1 id="Obituary"><a class="permalink" href="perl5140delta.html#Obituary">#</a>Obituary</h1>

<p>Randy Kobes, creator of http://kobesearch.cpan.org/ and contributor/maintainer to several core Perl toolchain modules, passed away on September 18, 2010 after a battle with lung cancer. The community was richer for his involvement. He will be missed.</p>

<h1 id="Acknowledgements"><a class="permalink" href="perl5140delta.html#Acknowledgements">#</a>Acknowledgements</h1>

<p>Perl 5.14.0 represents one year of development since Perl 5.12.0 and contains nearly 550,000 lines of changes across nearly 3,000 files from 150 authors and committers.</p>

<p>Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.14.0:</p>

<p>Aaron Crane, Abhijit Menon-Sen, Abigail, Ævar Arnfjörð Bjarmason, Alastair Douglas, Alexander Alekseev, Alexander Hartmaier, Alexandr Ciornii, Alex Davies, Alex Vandiver, Ali Polatel, Allen Smith, Andreas König, Andrew Rodland, Andy Armstrong, Andy Dougherty, Aristotle Pagaltzis, Arkturuz, Arvan, A. Sinan Unur, Ben Morrow, Bo Lindbergh, Boris Ratner, Brad Gilbert, Bram, brian d foy, Brian Phillips, Casey West, Charles Bailey, Chas. Owens, Chip Salzenberg, Chris &#39;BinGOs&#39; Williams, chromatic, Craig A. Berry, Curtis Jewell, Dagfinn Ilmari Mannsåker, Dan Dascalescu, Dave Rolsky, David Caldwell, David Cantrell, David Golden, David Leadbeater, David Mitchell, David Wheeler, Eric Brine, Father Chrysostomos, Fingle Nark, Florian Ragwitz, Frank Wiegand, Franz Fasching, Gene Sullivan, George Greer, Gerard Goossen, Gisle Aas, Goro Fuji, Grant McLean, gregor herrmann, H.Merijn Brand, Hongwen Qiu, Hugo van der Sanden, Ian Goodacre, James E Keenan, James Mastros, Jan Dubois, Jay Hannah, Jerry D. Hedden, Jesse Vincent, Jim Cromie, Jirka Hruška, John Peacock, Joshua ben Jore, Joshua Pritikin, Karl Williamson, Kevin Ryde, kmx, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯, Larwan Berke, Leon Brocard, Leon Timmermans, Lubomir Rintel, Lukas Mai, Maik Hentsche, Marty Pauley, Marvin Humphrey, Matt Johnson, Matt S Trout, Max Maischein, Michael Breen, Michael Fig, Michael G Schwern, Michael Parker, Michael Stevens, Michael Witten, Mike Kelly, Moritz Lenz, Nicholas Clark, Nick Cleaton, Nick Johnston, Nicolas Kaiser, Niko Tyni, Noirin Shirley, Nuno Carvalho, Paul Evans, Paul Green, Paul Johnson, Paul Marquess, Peter J. Holzer, Peter John Acklam, Peter Martini, Philippe Bruhat (BooK), Piotr Fusik, Rafael Garcia-Suarez, Rainer Tammer, Reini Urban, Renee Baecker, Ricardo Signes, Richard Möhn, Richard Soderberg, Rob Hoelz, Robin Barker, Ruslan Zakirov, Salvador Fandiño, Salvador Ortiz Garcia, Shlomi Fish, Sinan Unur, Sisyphus, Slaven Rezic, Steffen Müller, Steve Hay, Steven Schubiger, Steve Peters, Sullivan Beck, Tatsuhiko Miyagawa, Tim Bunce, Todd Rinaldo, Tom Christiansen, Tom Hukins, Tony Cook, Tye McQueen, Vadim Konovalov, Vernon Lyon, Vincent Pit, Walt Mankowski, Wolfram Humann, Yves Orton, Zefram, and Zsbán Ambrus.</p>

<p>This is woefully incomplete as it&#39;s automatically generated from version control history. In particular, it doesn&#39;t include the names of the (very much appreciated) contributors who reported issues in previous versions of Perl that helped make Perl 5.14.0 better. For a more complete list of all of Perl&#39;s historical contributors, please see the <code>AUTHORS</code> file in the Perl 5.14.0 distribution.</p>

<p>Many of the changes included in this version originated in the CPAN modules included in Perl&#39;s core. We&#39;re grateful to the entire CPAN community for helping Perl to flourish.</p>

<h1 id="Reporting-Bugs"><a class="permalink" href="perl5140delta.html#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1>

<p>If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the Perl bug database at http://rt.perl.org/perlbug/ . There may also be information at http://www.perl.org/ , the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please run the <a href="perlbug.html">perlbug</a> program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.</p>

<p>If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to perl5-security-report@perl.org. This points to a closed subscription unarchived mailing list, which includes all the core committers, who are able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please use this address for security issues in the Perl core <i>only</i>, not for modules independently distributed on CPAN.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl5140delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
